From 19da0247c83ac325c65f402e46bdc6d140e2cdfa Mon Sep 17 00:00:00 2001 From: Ravi Dey Date: Wed, 29 Jun 2011 18:28:05 +0530 Subject: [PATCH] fix cost center --- accounts/doctype/cost_center/cost_center.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/doctype/cost_center/cost_center.py b/accounts/doctype/cost_center/cost_center.py index 3b374c5e26..060225da0b 100644 --- a/accounts/doctype/cost_center/cost_center.py +++ b/accounts/doctype/cost_center/cost_center.py @@ -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 # --------