brotherton-erpnext/patches/jan_mar_2012/update_stockreco_perm.py

5 lines
193 B
Python
Raw Normal View History

from __future__ import unicode_literals
2012-03-13 12:45:53 +05:30
def execute():
import webnotes
webnotes.conn.sql("update `tabDocPerm` set cancel = 1 where parent = 'Stock Reconciliation' and ifnull(submit, 0) = 1")