From 9a6dbfca8f8044af771256eb13ba08f0e1d2a46c Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 24 Apr 2012 12:40:50 +0530 Subject: [PATCH] updated permlevel in address --- erpnext/patches/april_2012/update_permlevel_in_address.py | 3 +++ erpnext/patches/patch_list.py | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 erpnext/patches/april_2012/update_permlevel_in_address.py diff --git a/erpnext/patches/april_2012/update_permlevel_in_address.py b/erpnext/patches/april_2012/update_permlevel_in_address.py new file mode 100644 index 0000000000..f8deb2c4c3 --- /dev/null +++ b/erpnext/patches/april_2012/update_permlevel_in_address.py @@ -0,0 +1,3 @@ +def execute(): + import webnotes + webnotes.conn.sql("update `tabDocPerm` set permlevel = 0 where parent = 'Address'") diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py index cce6330f11..061aec1bf3 100644 --- a/erpnext/patches/patch_list.py +++ b/erpnext/patches/patch_list.py @@ -237,5 +237,10 @@ patch_list = [ 'patch_file': 'update_role_in_address', 'description': 'updated roles in address' }, + { + 'patch_module': 'patches.april_2012', + 'patch_file': 'update_permlevel_in_address', + 'description': 'updated permlevel in address' + }, ]