diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py index 1a00e997e1..1325a6ecca 100644 --- a/erpnext/patches/patch_list.py +++ b/erpnext/patches/patch_list.py @@ -601,6 +601,10 @@ patch_list = [ }, { 'patch_module': 'patches.september_2012', +<<<<<<< Updated upstream 'patch_file': 'deprecate_account_balance', +======= + 'patch_file': 'profile_delete_permission', +>>>>>>> Stashed changes }, ] diff --git a/erpnext/patches/september_2012/profile_delete_permission.py b/erpnext/patches/september_2012/profile_delete_permission.py new file mode 100644 index 0000000000..40d569d337 --- /dev/null +++ b/erpnext/patches/september_2012/profile_delete_permission.py @@ -0,0 +1,4 @@ +import webnotes +def execute(): + webnotes.conn.sql("""update `tabDocPerm` set cancel=1 + where parent='Profile' and role in ('System Manager', 'Administrator') and permlevel=0""") \ No newline at end of file