diff --git a/ext/custom-addons/dp_custom/models/sale.py b/ext/custom-addons/dp_custom/models/sale.py index 4e2208d8..392aab17 100644 --- a/ext/custom-addons/dp_custom/models/sale.py +++ b/ext/custom-addons/dp_custom/models/sale.py @@ -79,7 +79,7 @@ class SaleCart(models.Model): # print("connected") drop_view_if_exists(self._cr, 'sale_cart') self._cr.execute("""CREATE OR REPLACE VIEW sale_cart AS - SELECT DISTINCT row_number() OVER (PARTITION BY true) AS id, + SELECT so.id AS id, so.id AS order_id, so.name AS name, so.origin AS origin,