mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
make root_type null if not root (#11626)
This commit is contained in:
@@ -257,6 +257,8 @@ def add_ac(args=None):
|
|||||||
if cint(ac.get("is_root")):
|
if cint(ac.get("is_root")):
|
||||||
ac.parent_account = None
|
ac.parent_account = None
|
||||||
ac.flags.ignore_mandatory = True
|
ac.flags.ignore_mandatory = True
|
||||||
|
else:
|
||||||
|
ac.root_type = None
|
||||||
|
|
||||||
ac.insert()
|
ac.insert()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user