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

Closes #14214
(grafted from e1f8cd495429eae5b7015a8e92e55f068d645375)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier
2025-09-04 10:37:26 +02:00
parent 1fcf4797dc
commit a9c8c79e3d
+2 -2
View File
@@ -71,9 +71,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: