Merge pull request #17064 from rohitwaghchaure/not_able_to_create_chart_of_account

fix: user not able to create chart of account in parent if child has no chart of account
This commit is contained in:
rohitwaghchaure 2019-03-30 10:14:19 +05:30 committed by GitHub
commit 9d159be826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,6 +112,8 @@ class Account(NestedSet):
["company", "name"], as_dict=True):
acc_name_map[d["company"]] = d["name"]
if not acc_name_map: return
for company in descendants:
doc = frappe.copy_doc(self)
doc.flags.ignore_root_company_validation = True