From 3cc9ffc6883b80412204c288be2c278a43899c44 Mon Sep 17 00:00:00 2001 From: Andreas Osim Date: Wed, 10 Aug 2022 16:56:54 +0200 Subject: [PATCH] shopping_cart fix --- ext/custom-addons/dp_custom/models/sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,