[chart of accounts/cost center] [add account/cost center] fix in permission issue

This commit is contained in:
Anand Doshi
2013-06-11 17:33:37 +05:30
parent 433047b2e2
commit 2e0cc41fc6
4 changed files with 25 additions and 18 deletions

View File

@@ -125,7 +125,6 @@ def add_ac(args=None):
ac.doc.doctype = "Account"
ac.doc.old_parent = ""
ac.doc.freeze_account = "No"
ac.ignore_permissions = 1
ac.insert()
return ac.doc.name
@@ -138,7 +137,6 @@ def add_cc(args=None):
cc = webnotes.bean(args)
cc.doc.doctype = "Cost Center"
cc.doc.old_parent = ""
cc.ignore_permissions = 1
cc.insert()
return cc.doc.name