[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:
Makarand Bauskar
2017-06-16 14:12:28 +05:30
committed by Rushabh Mehta
parent b1c794a4f9
commit 3d6697949c
3 changed files with 4 additions and 4 deletions

View File

@@ -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