From 587aac7f9600df490272e86ec3416631a3b6220b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Lodeiros?= Date: Mon, 30 Oct 2023 10:59:39 +0100 Subject: [PATCH] [FIX]pms: boardservices with multi lines with the same product --- pms/models/product_product.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pms/models/product_product.py b/pms/models/product_product.py index 9b559287d..9eaf519ba 100644 --- a/pms/models/product_product.py +++ b/pms/models/product_product.py @@ -40,7 +40,8 @@ class ProductProduct(models.Model): ), ("product_id", "=", record.id), ("pms_property_id", "=", pms_property_id), - ] + ], + limit=1, ) .amount )