Skip to content

Commit 0c392db

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

product_pack/models/product_pricelist.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ def _get_product_price(self, product, *args, **kwargs):
2525
][0]
2626

2727
for line in product.sudo().pack_line_ids:
28-
pack_price += line._get_pack_line_price(self, *args, **kwargs)
28+
pack_price += line._get_pack_line_price(
29+
self,
30+
kwargs.get("quantity", args[0] if args else 1.0),
31+
uom=kwargs.get("uom"),
32+
date=kwargs.get("date"),
33+
currency=kwargs.get("currency"),
34+
)
2935
return pack_price
3036
else:
3137
return super()._get_product_price(product, *args, **kwargs)

0 commit comments

Comments
 (0)