Skip to content

Commit

Permalink
[IMP] product_import: currency can be implicit
Browse files Browse the repository at this point in the history
  • Loading branch information
florentx committed Jan 28, 2025
1 parent 3a2d3c6 commit 0088109
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions product_import/wizard/product_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,12 @@ def _prepare_product(self, parsed_product, seller, company_id, chatter_msg):
company_id=product_company_id,
)
uom = self._bdimport._match_uom(parsed_product["uom"], chatter_msg)
currency = self._bdimport._match_currency(
parsed_product["currency"], chatter_msg
)
if parsed_product["currency"]:
currency = self._bdimport._match_currency(
parsed_product["currency"], chatter_msg
)
else:
currency = (import_company or self.env.company).currency_id

product_vals = {
"active": parsed_product.get("active", True),
Expand Down

0 comments on commit 0088109

Please sign in to comment.