From f18cd2eaf70815004967be360e34aab86ef849a9 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Mon, 15 Jan 2018 18:24:53 +0530 Subject: [PATCH] [fix] is_root check --- erpnext/accounts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index e5809fec58..0e35768a6a 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -252,7 +252,7 @@ def add_ac(args=None): 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 = ""