Merge pull request #21265 from vishdha/chart_account_v13

fix: Chart of account importer UX improved
This commit is contained in:
Deepesh Garg 2020-04-16 11:21:05 +05:30 committed by GitHub
commit 17ab1592c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ class Account(NestedSet):
throw(_("Root cannot be edited."), RootNotEditable)
if not self.parent_account and not self.is_group:
frappe.throw(_("Root Account must be a group"))
frappe.throw(_("The root account {0} must be a group").format(frappe.bold(self.name)))
def validate_root_company_and_sync_account_to_children(self):
# ignore validation while creating new compnay or while syncing to child companies