From 2937915ac8604e3f606830c0b6db534ed47e448b Mon Sep 17 00:00:00 2001 From: Andreas Osim Date: Thu, 11 Aug 2022 17:25:34 +0200 Subject: [PATCH] trial fix sale.cart --- 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 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,