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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user