fix: avoid name clash in delivery stop (#37306)
* fix(stock): avoid name clash in delivery stop with Document.lock()
* chore(stock): format delivery stop json according to doctype builder
(cherry picked from commit 681782121c)
Co-authored-by: David Arnold <dgx.arnold@gmail.com>
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")
|