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 Dec 9, 2024
1 parent 04ee2ba commit c99b040
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 @@ -166,9 +166,12 @@ def _prepare_product(self, parsed_product, chatter_msg, seller=None):
.search([("barcode", "=", parsed_product["barcode"])], limit=1)
)
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 = product_company_id.currency_id

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

0 comments on commit c99b040

Please sign in to comment.