Skip to content

Commit

Permalink
[16.0][FIX] product_variant_configurator: change instance checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Mantux11 committed Apr 12, 2024
1 parent f3aa289 commit 83a6823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion product_variant_configurator/models/pricelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 83a6823

Please sign in to comment.