updated permlevel in address
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 0000000..f8deb2c
--- /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 cce6330..061aec1 100644
--- a/erpnext/patches/patch_list.py
+++ b/erpnext/patches/patch_list.py
@@ -237,5 +237,10 @@
'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'
+ },
]