[bug fixes] [global defaults] [cleanup]

This commit is contained in:
Rushabh Mehta
2013-06-24 18:18:46 +05:30
parent 7925bd7079
commit 7a93d5de30
23 changed files with 339 additions and 291 deletions

View File

@@ -240,8 +240,7 @@ class DocType:
cc_bean.ignore_permissions = True
cc_bean.insert()
webnotes.conn.set_value("Company", self.doc.name, "cost_center",
"Main - " + self.doc.abbr)
webnotes.conn.set(self.doc, "cost_center", "Main - " + self.doc.abbr)
def on_update(self):
self.set_letter_head()