Skip to content

Commit

Permalink
Merge PR #346 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Sep 5, 2024
2 parents 992fcfc + 83a6823 commit 3ec35b1
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 3ec35b1

Please sign in to comment.