commit | f18cd2eaf70815004967be360e34aab86ef849a9 | [log] [tgz] |
---|---|---|
author | Faris Ansari <netchamp.faris@gmail.com> | Mon Jan 15 18:24:53 2018 +0530 |
committer | Faris Ansari <netchamp.faris@gmail.com> | Mon Jan 15 18:30:01 2018 +0530 |
tree | b9daa8ca5c30a1e76dcd547e3de0ecc8b0cca542 | |
parent | a2426fcc9eff94b671a5a44038a0c1bb52596629 [diff] |
[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 = ""