mandatory validation in cost center

This commit is contained in:
Nabin Hait 2012-07-10 14:18:35 +05:30
parent 969622dcef
commit 7c0b893b1f

View File

@ -53,7 +53,7 @@ class DocType:
if not self.doc.group_or_ledger:
msgprint("Please select Group or Ledger value", raise_exception=1)
if self.doc.cost_center_name != 'Root' and not self.parent_cost_center:
if self.doc.cost_center_name != 'Root' and not self.doc.parent_cost_center:
msgprint("Please enter parent cost center", raise_exception=1)
#-------------------------------------------------------------------------