Skip to content

Commit

Permalink
[FIX] product_pack: fix in price list search
Browse files Browse the repository at this point in the history
  • Loading branch information
lef-adhoc committed Jan 23, 2024
1 parent 1f2e86a commit 36937ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions product_pack/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def price_compute(
# it will be converted again by pp._compute_price_rule, so if
# that is the case we convert the amounts to the pack currency
if pricelist_id_or_name:
pricelist = None

Check warning on line 50 in product_pack/models/product_product.py

View check run for this annotation

Codecov / codecov/patch

product_pack/models/product_product.py#L50

Added line #L50 was not covered by tests
if isinstance(pricelist_id_or_name, list):
pricelist_id_or_name = pricelist_id_or_name[0]
if isinstance(pricelist_id_or_name, str):
Expand Down

0 comments on commit 36937ac

Please sign in to comment.