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 )