mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 20:49:19 +00:00
[chart of accounts/cost center] [add account/cost center] fix in permission issue
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user