* fix(stock): avoid name clash in delivery stop with Document.lock() * chore(stock): format delivery stop json according to doctype builder
		
			
				
	
	
		
			8 lines
		
	
	
		
			189 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			189 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import frappe
 | |
| from frappe.model.utils.rename_field import rename_field
 | |
| 
 | |
| 
 | |
| def execute():
 | |
| 	if frappe.db.has_column("Delivery Stop", "lock"):
 | |
| 		rename_field("Delivery Stop", "lock", "locked")
 |