replaced set

This commit is contained in:
Anand Doshi
2012-11-30 17:18:45 +05:30
parent 535fbb1b00
commit ea61d8cf99
18 changed files with 59 additions and 59 deletions

View File

@@ -190,9 +190,9 @@ class DocType:
# ---------------------------------------------------
def set_default_groups(self):
if not self.doc.receivables_group:
set(self.doc, 'receivables_group', 'Accounts Receivable - '+self.doc.abbr)
webnotes.conn.set(self.doc, 'receivables_group', 'Accounts Receivable - '+self.doc.abbr)
if not self.doc.payables_group:
set(self.doc, 'payables_group', 'Accounts Payable - '+self.doc.abbr)
webnotes.conn.set(self.doc, 'payables_group', 'Accounts Payable - '+self.doc.abbr)
# Create default cost center