From 83a682370d83b43bb54960f72dc28f3364d2ac37 Mon Sep 17 00:00:00 2001 From: Mantux11 Date: Fri, 12 Apr 2024 13:46:43 +0300 Subject: [PATCH] [16.0][FIX] product_variant_configurator: change instance checking --- product_variant_configurator/models/pricelist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_variant_configurator/models/pricelist.py b/product_variant_configurator/models/pricelist.py index bc65c74ab..3a8d6c077 100644 --- a/product_variant_configurator/models/pricelist.py +++ b/product_variant_configurator/models/pricelist.py @@ -13,7 +13,7 @@ class ProductPricelist(models.Model): def _compute_price_rule(self, products, qty, uom=None, date=False, **kwargs): """Overwrite for covering the case where templates are passed and a different uom is used.""" - if products[0]._name != "product.template": + if products._name != "product.template": # Standard use case - Nothing to do return super(ProductPricelist, self)._compute_price_rule( products,