mass replace sql with webnotes.conn.sql

This commit is contained in:
Pratik Vyas
2013-09-18 12:20:53 +05:30
parent e55fbfc090
commit 5e16a69b35
45 changed files with 245 additions and 246 deletions

View File

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