From 9a8582d39273a930be8e1864be523731a3801448 Mon Sep 17 00:00:00 2001 From: Eric Antones Date: Sun, 20 Jun 2021 21:10:24 +0200 Subject: [PATCH] [FIX] pms: error on daily pricelist detection --- pms/models/product_pricelist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pms/models/product_pricelist.py b/pms/models/product_pricelist.py index 0b1873df2..0feb51de7 100644 --- a/pms/models/product_pricelist.py +++ b/pms/models/product_pricelist.py @@ -147,7 +147,7 @@ class ProductPricelist(models.Model): for item in record.item_ids: if record.pricelist_type == "daily" and ( item.compute_price != "fixed" - or len(record.pms_property_ids) != 1 + or len(item.pms_property_ids) != 1 or not item.date_end_consumption or not item.date_start_consumption or item.date_end_consumption != item.date_start_consumption