fix(patch): update BOMs to have correct transfer_material_against
This commit is contained in:
parent
86efa0dbfd
commit
e4c220053f
@ -334,3 +334,4 @@ erpnext.patches.v14_0.delete_hospitality_doctypes # 20-01-2022
|
|||||||
erpnext.patches.v14_0.delete_agriculture_doctypes
|
erpnext.patches.v14_0.delete_agriculture_doctypes
|
||||||
erpnext.patches.v14_0.rearrange_company_fields
|
erpnext.patches.v14_0.rearrange_company_fields
|
||||||
erpnext.patches.v14_0.update_leave_notification_template
|
erpnext.patches.v14_0.update_leave_notification_template
|
||||||
|
erpnext.patches.v13_0.update_sane_transfer_against
|
||||||
|
|||||||
11
erpnext/patches/v13_0/update_sane_transfer_against.py
Normal file
11
erpnext/patches/v13_0/update_sane_transfer_against.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
bom = frappe.qb.DocType("BOM")
|
||||||
|
|
||||||
|
(frappe.qb
|
||||||
|
.update(bom)
|
||||||
|
.set(bom.transfer_material_against, "Work Order")
|
||||||
|
.where(bom.with_operations == 0)
|
||||||
|
).run()
|
||||||
Loading…
x
Reference in New Issue
Block a user