commit | af7df6ba500416cffc2c80e388a8b62d89e9edf4 | [log] [tgz] |
---|---|---|
author | Saurabh <saurabh6790@gmail.com> | Mon Jan 15 18:35:54 2018 +0530 |
committer | GitHub <noreply@github.com> | Mon Jan 15 18:35:54 2018 +0530 |
tree | b9daa8ca5c30a1e76dcd547e3de0ecc8b0cca542 | |
parent | a2426fcc9eff94b671a5a44038a0c1bb52596629 [diff] | |
parent | f18cd2eaf70815004967be360e34aab86ef849a9 [diff] |
Merge pull request #12495 from netchampfaris/hotfix-add-ac-2 [fix] is_root check
diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index e5809fe..0e35768 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py
@@ -252,7 +252,7 @@ if not ac.parent_account: ac.parent_account = args.get("parent") - if ac.is_root: + if getattr(ac, 'is_root', None): ac.parent_account='' ac.old_parent = ""