brotherton-erpnext/patches/february_2013/reload_bom_replace_tool_permission.py
2013-02-01 12:14:45 +05:30

4 lines
185 B
Python

def execute():
import webnotes
webnotes.conn.sql("""delete from `tabDocPerm` where parent = 'BOM Replace Tool'""")
webnotes.reload_doc("manufacturing", "doctype", "bom_replace_tool")