From 9826ccce540a945a8cb8bb788a8f993aa5aae553 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 13 Mar 2012 12:45:53 +0530 Subject: [PATCH] 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")