From 0a726e23354d0e4c546ba0b452be8aff791a3204 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Thu, 18 Dec 2014 12:41:09 +0530 Subject: [PATCH] add reload doc to patch --- erpnext/patches/v5_0/set_default_company_in_bom.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/patches/v5_0/set_default_company_in_bom.py b/erpnext/patches/v5_0/set_default_company_in_bom.py index e5dc86c7695..53935ff3f55 100644 --- a/erpnext/patches/v5_0/set_default_company_in_bom.py +++ b/erpnext/patches/v5_0/set_default_company_in_bom.py @@ -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)