Update accounts/doctype/gl_control/gl_control.py

ignore permission while creating account for customer and supplier
This commit is contained in:
Nabin Hait 2013-01-29 18:55:34 +05:30
parent dacfa901c6
commit 7c40531a7e

View File

@ -51,6 +51,7 @@ class DocType:
ac.doc.doctype = "Account"
ac.doc.old_parent = ""
ac.doc.freeze_account = "No"
ac.ignore_permission = 1
ac.insert()
return ac.doc.name
@ -61,6 +62,7 @@ class DocType:
cc = webnotes.model_wrapper(eval(arg))
cc.doc.doctype = "Cost Center"
cc.doc.old_parent = ""
cc.ignore_permission = 1
cc.insert()
return cc.doc.name