[minor] fixed the child table field name (#9328)
* [minor] exclude Other domain from Domains * [minor] fixed the child table field name
This commit is contained in:
committed by
Rushabh Mehta
parent
b1c794a4f9
commit
3d6697949c
@@ -21,9 +21,9 @@ def execute():
|
||||
condition = ""
|
||||
company = erpnext.get_default_company()
|
||||
if company:
|
||||
condition = " where name='{0}'".format(company)
|
||||
condition = " and name='{0}'".format(company)
|
||||
|
||||
domains = frappe.db.sql_list("select distinct domain from `tabCompany` {0}".format(condition))
|
||||
domains = frappe.db.sql_list("select distinct domain from `tabCompany` where domain != 'Other' {0}".format(condition))
|
||||
|
||||
if not domains:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user