add reload doc to patch

This commit is contained in:
Pratik Vyas 2014-12-18 12:41:09 +05:30
parent dc2630b7fa
commit 0a726e2335

View File

@ -4,5 +4,6 @@
import frappe
def execute():
frappe.reload_doc("manufacturing", "doctype", "bom")
company = frappe.db.get_value("Global Defaults", None, "default_company")
frappe.db.sql("""update `tabBOM` set company = %s""",company)