From 9826ccce540a945a8cb8bb788a8f993aa5aae553 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 13 Mar 2012 12:45:53 +0530 Subject: [PATCH 1/2] update stock reco permission --- erpnext/patches/jan_mar_2012/update_stockreco_perm.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 erpnext/patches/jan_mar_2012/update_stockreco_perm.py diff --git a/erpnext/patches/jan_mar_2012/update_stockreco_perm.py b/erpnext/patches/jan_mar_2012/update_stockreco_perm.py new file mode 100644 index 0000000000..9c3c6974cd --- /dev/null +++ b/erpnext/patches/jan_mar_2012/update_stockreco_perm.py @@ -0,0 +1,3 @@ +def execute(): + import webnotes + webnotes.conn.sql("update `tabDocPerm` set cancel = 1 where parent = 'Stock Reconciliation' and ifnull(submit, 0) = 1") From c6b989c9d7cc35813a1a5c49c244fc9771c790bf Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 13 Mar 2012 12:47:07 +0530 Subject: [PATCH 2/2] update stock reco permission --- erpnext/patches/patch_list.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py index 85a11a591d..2bfaf08e15 100644 --- a/erpnext/patches/patch_list.py +++ b/erpnext/patches/patch_list.py @@ -182,5 +182,10 @@ patch_list = [ 'patch_file': 'remove_series_defval', 'description': 'Remove rv series default value' }, + { + 'patch_module': 'patches.jan_mar_2012', + 'patch_file': 'update_stockreco_perm', + 'description': 'Update stock reco permission' + }, ]