[fix] patch fixes

This commit is contained in:
Saurabh
2017-06-26 13:14:52 +05:30
parent 81bb2c9f3c
commit 29fa0a9a17
3 changed files with 8 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ def execute():
condition = ""
company = erpnext.get_default_company()
if company:
condition = " and name='{0}'".format(company)
condition = " and name='{0}'".format(frappe.db.escape(company))
domains = frappe.db.sql_list("select distinct domain from `tabCompany` where domain != 'Other' {0}".format(condition))