2022-01-11 17:22:40 +05:30
|
|
|
import frappe
|
|
|
|
|
|
|
|
|
|
|
|
def execute():
|
2022-03-28 18:52:46 +05:30
|
|
|
frappe.reload_doc("setup", "doctype", "uom")
|
2022-01-11 17:22:40 +05:30
|
|
|
|
|
|
|
uom = frappe.qb.DocType("UOM")
|
|
|
|
|
2022-03-28 18:52:46 +05:30
|
|
|
(
|
|
|
|
frappe.qb.update(uom)
|
2022-01-11 17:22:40 +05:30
|
|
|
.set(uom.enabled, 1)
|
|
|
|
.where(uom.creation >= "2021-10-18") # date when this field was released
|
|
|
|
).run()
|