Files
schuetz3-erpnext/erpnext/patches/v13_0/update_sane_transfer_against.py
2024-03-27 16:06:04 +05:30

10 lines
181 B
Python

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()