fix: user not able to create chart of account in parent if child has no chart of account

This commit is contained in:
Rohit Waghchaure 2019-03-29 19:20:47 +05:30
parent 92797eee87
commit cc59fcd75e

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