nsm bug in customer_group and removed abbr in Cost Center

This commit is contained in:
Rushabh Mehta
2013-01-25 15:11:26 +05:30
parent 6bc39bab52
commit 83e08362bd
6 changed files with 18 additions and 52 deletions

View File

@@ -39,6 +39,7 @@ class DocType(DocTypeNestedSet):
def on_update(self):
self.validate_name_with_customer()
super(DocType, self).on_update()
def validate_name_with_customer(self):
if webnotes.conn.exists("Customer", self.doc.name):