Merge pull request #18494 from netchampfaris/parent-account-child-account-currency-fp

fix(Account): Pass parent currency to child currency
This commit is contained in:
rohitwaghchaure
2019-07-26 12:13:27 +05:30
committed by GitHub

View File

@@ -123,7 +123,9 @@ class Account(NestedSet):
doc.flags.ignore_root_company_validation = True doc.flags.ignore_root_company_validation = True
doc.update({ doc.update({
"company": company, "company": company,
"account_currency": None, # parent account's currency should be passed down to child account's curreny
# if it is None, it picks it up from default company currency, which might be unintended
"account_currency": self.account_currency,
"parent_account": parent_acc_name_map[company] "parent_account": parent_acc_name_map[company]
}) })
doc.save() doc.save()