7 lines
160 B
Python
7 lines
160 B
Python
import frappe
|
|
|
|
|
|
def execute():
|
|
asset = frappe.qb.DocType("Asset")
|
|
frappe.qb.update(asset).set(asset.asset_quantity, 1).where(asset.asset_quantity == 0).run()
|