brotherton-erpnext/erpnext/patches/jan_mar_2012/update_stockreco_perm.py
2012-03-13 12:45:53 +05:30

4 lines
153 B
Python

def execute():
import webnotes
webnotes.conn.sql("update `tabDocPerm` set cancel = 1 where parent = 'Stock Reconciliation' and ifnull(submit, 0) = 1")