[patch] [fix]

This commit is contained in:
Rushabh Mehta
2015-02-04 10:40:02 +05:30
parent 279bb6f3ed
commit b736443e3f

View File

@@ -4,6 +4,10 @@
import frappe
def execute():
frappe.reload_doc("manufacturing", "doctype", "bom")
frappe.reload_doc("manufacturing", "doctype", "bom_item")
frappe.reload_doc("manufacturing", "doctype", "bom_explosion_item")
frappe.db.sql("""update `tabBOM` as bom set bom.item_name = \
( select item.item_name from `tabItem` as item where item.name = bom.item)""")
frappe.db.sql("""update `tabBOM Item` as bomItem set bomItem.item_name = ( select item.item_name \