fix cost center

This commit is contained in:
Ravi Dey 2011-06-29 18:28:05 +05:30
parent c674e43885
commit 19da0247c8

View File

@ -55,7 +55,7 @@ class DocType:
webnotes.utils.nestedset.update_nsm(self)
def check_if_child_exists(self):
return sql("select name from `tabCost Center` where parent_cost_center = %s and docstatus != 2", self.doc.name, debug=1)
return sql("select name from `tabCost Center` where parent_cost_center = %s and docstatus != 2", self.doc.name, debug=0)
# On Trash
# --------