Use the presentment currency of the Shopify order for the sale currency

Closes #14214
This commit is contained in:
Cédric Krier
2025-09-04 10:37:26 +02:00
parent 61731f9f1e
commit a1b80e1af5
+2 -2
View File
@@ -73,9 +73,9 @@ class Sale(IdentifierMixin, metaclass=PoolMeta):
if shop_warehouse.shopify_id == str(order.location_id):
sale.warehouse = shop_warehouse.warehouse
break
if sale.currency.code != order.currency:
if sale.currency.code != order.presentment_currency:
sale.currency, = Currency.search([
('code', '=', order.currency),
('code', '=', order.presentment_currency),
], limit=1)
if sale.party != shop.guest_party: