replaced get_value

This commit is contained in:
Anand Doshi
2012-11-30 17:16:03 +05:30
parent a2c6349342
commit 535fbb1b00
19 changed files with 29 additions and 30 deletions

View File

@@ -52,7 +52,7 @@ class DocType(TransactionBase):
self.doc.name = make_autoname(self.doc.naming_series+'.#####')
def get_company_abbr(self):
return get_value('Company', self.doc.company, 'abbr')
return webnotes.conn.get_value('Company', self.doc.company, 'abbr')
def get_receivables_group(self):
g = sql("select receivables_group from tabCompany where name=%s", self.doc.company)