Skip to content

Commit d4377dc

Browse files
FIX] product_pack: pass currency explicitly in _get_pack_line_price to prevent crash
1 parent 657af34 commit d4377dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

product_pack/models/product_pack_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def _get_pack_line_price(self, pricelist, quantity, uom=None, date=False, **kwar
6262
)
6363
else:
6464
price = pricelist._compute_price_rule(
65-
self.product_id, quantity, uom=uom, date=date, **kwargs
65+
self.product_id, quantity, currency=pricelist.currency_id, uom=uom, date=date, **kwargs
6666
)[self.product_id.id][0]
6767
return price * self.quantity
6868

0 commit comments

Comments
 (0)