brotherton-erpnext/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 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")