From 7c40531a7e58e9e25f3eb28e47a2fb3655b14443 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 29 Jan 2013 18:55:34 +0530 Subject: [PATCH] Update accounts/doctype/gl_control/gl_control.py ignore permission while creating account for customer and supplier --- accounts/doctype/gl_control/gl_control.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/accounts/doctype/gl_control/gl_control.py b/accounts/doctype/gl_control/gl_control.py index bafe7581ca..0070f7c6f8 100644 --- a/accounts/doctype/gl_control/gl_control.py +++ b/accounts/doctype/gl_control/gl_control.py @@ -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