brotherton-erpnext/erpnext/patches/jan_mar_2012/update_stockreco_perm.py

4 lines
153 B
Python
Raw Normal View History

2012-03-13 07:15:53 +00:00
def execute():
import webnotes
webnotes.conn.sql("update `tabDocPerm` set cancel = 1 where parent = 'Stock Reconciliation' and ifnull(submit, 0) = 1")