# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt

import frappe

def execute():
	company = frappe.db.get_value("Global Defaults", None, "default_company")
	frappe.db.sql("""update  `tabBOM` set company = %s""",company)

# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt

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)

add reload doc to patch