brotherton-erpnext/erpnext/patches/v5_0/set_default_company_in_bom.py
Neil Trini Lasrado 1d66b71464 patch fix
2014-12-12 14:48:30 +05:30

9 lines
300 B
Python

# 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)