Skip to content

Commit

Permalink
Merge pull request #629 from DigiThinkIT/sahil28297-patch-2
Browse files Browse the repository at this point in the history
fix: force reload BOM doctype
  • Loading branch information
hrwX committed Oct 7, 2020
2 parents c9d637d + a08df39 commit 265151d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion erpnext/patches/v13_0/set_manufacturing_types.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import frappe

def execute():
frappe.reload_doc("manufacturing", "doctype", "BOM", force=1)
frappe.reload_doc("manufacturing", "doctype", "Work Order")
frappe.reload_doc("manufacturing", "doctype", "Stock Entry")
for dt in ('BOM', 'Work Order', 'Stock Entry'):
frappe.reload_doctype(dt)
frappe.db.sql("""
UPDATE
`tab%s`
Expand Down

0 comments on commit 265151d

Please sign in to comment.