Skip to content

Commit

Permalink
fix: reload manufacturing setting before patch (frappe#26641)
Browse files Browse the repository at this point in the history
(cherry picked from commit c8d7a8c)
  • Loading branch information
ankush authored and frappe-bot committed Jul 27, 2021
1 parent 5448aa2 commit 27ccee7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/patches/v13_0/add_missing_fg_item_for_stock_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def execute():
if not frappe.db.has_column('Work Order', 'has_batch_no'):
return

frappe.reload_doc('manufacturing', 'doctype', 'manufacturing_settings')
if cint(frappe.db.get_single_value('Manufacturing Settings', 'make_serial_no_batch_from_work_order')):
return

Expand Down Expand Up @@ -107,4 +108,4 @@ def repost_future_sle_and_gle(doc):
"company": doc.company
})

create_repost_item_valuation_entry(args)
create_repost_item_valuation_entry(args)

0 comments on commit 27ccee7

Please sign in to comment.