fix: set customer currency in pos_invoice if exists

if currency exists in the profile and customer currency doesn't exists still it will update currency to None, so update customer currency only if exists

(cherry picked from commit 041d52e828)
This commit is contained in:
milanpethani
2023-09-20 11:58:46 +05:30
committed by Mergify
parent d3c9a6d975
commit e0da8d261f

View File

@@ -518,7 +518,7 @@ class POSInvoice(SalesInvoice):
selling_price_list = (
customer_price_list or customer_group_price_list or profile.get("selling_price_list")
)
if customer_currency != profile.get("currency"):
if customer_currency and customer_currency != profile.get("currency"):
self.set("currency", customer_currency)
else: