commit | 9826ccce540a945a8cb8bb788a8f993aa5aae553 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Tue Mar 13 12:45:53 2012 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Tue Mar 13 12:45:53 2012 +0530 |
tree | a02eb9c5c50520b9527a592be02121fb781afef5 | |
parent | b5b39f0e489b01144754a93bcdd5a20bda7dbbb7 [diff] |
update stock reco permission
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 0000000..9c3c697 --- /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")