mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
mass replace sql with webnotes.conn.sql
This commit is contained in:
@@ -37,7 +37,7 @@ class DocType(SellingController):
|
||||
webnotes.conn.set(self.doc, 'status', status)
|
||||
|
||||
def check_status(self):
|
||||
chk = sql("select status from `tabLead` where name=%s", self.doc.name)
|
||||
chk = webnotes.conn.sql("select status from `tabLead` where name=%s", self.doc.name)
|
||||
chk = chk and chk[0][0] or ''
|
||||
return cstr(chk)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user