fix: avoid name clash in delivery stop (backport #37306) (#37701)

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>
This commit is contained in:
mergify[bot]
2023-10-26 18:12:01 +05:30
committed by GitHub
parent c58fefb359
commit 556095daaa
5 changed files with 180 additions and 790 deletions

View File

@@ -0,0 +1,7 @@
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")