mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-26 13:25:20 +00:00
Parent account mandatory for all non-root accounts
This commit is contained in:
@@ -91,6 +91,8 @@ class Company(Document):
|
||||
|
||||
for d in self.fld_dict.keys():
|
||||
account.set(d, (d == 'parent_account' and lst[self.fld_dict[d]]) and lst[self.fld_dict[d]] +' - '+ self.abbr or lst[self.fld_dict[d]])
|
||||
if not account.parent_account:
|
||||
account.ignore_mandatory = True
|
||||
account.insert()
|
||||
|
||||
def set_default_accounts(self):
|
||||
|
||||
Reference in New Issue
Block a user