diff --git a/ext/custom-addons/dp_custom/models/sale.py b/ext/custom-addons/dp_custom/models/sale.py index a2c3914d..4e2208d8 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 () AS id, + SELECT DISTINCT row_number() OVER (PARTITION BY true) AS id, so.id AS order_id, so.name AS name, so.origin AS origin,