mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
[docs] [setup] cleanup
This commit is contained in:
@@ -31,14 +31,14 @@ def get_children():
|
||||
company_field = ctype=='Account' and 'company' or 'company_name'
|
||||
|
||||
# root
|
||||
if args['parent'] == company:
|
||||
if args['parent'] in ("Accounts", "Cost Centers"):
|
||||
acc = webnotes.conn.sql(""" select
|
||||
name as value, if(group_or_ledger='Group', 1, 0) as expandable
|
||||
from `tab%s`
|
||||
where ifnull(parent_%s,'') = ''
|
||||
and %s = %s and docstatus<2
|
||||
order by name""" % (ctype, ctype.lower().replace(' ','_'), company_field, '%s'),
|
||||
args['parent'], as_dict=1)
|
||||
company, as_dict=1)
|
||||
else:
|
||||
# other
|
||||
acc = webnotes.conn.sql("""select
|
||||
|
||||
Reference in New Issue
Block a user