8 lines
		
	
	
		
			208 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			208 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import frappe
 | |
| 
 | |
| 
 | |
| def execute():
 | |
| 	if frappe.db.count('Asset'):
 | |
| 		frappe.reload_doc("assets", "doctype", "Asset")
 | |
| 		asset = frappe.qb.DocType('Asset')
 | |
| 		frappe.qb.update(asset).set(asset.asset_quantity, 1).run() |