patch: added patch to update deal quick entry layout to restrict editing section label and removing it

This commit is contained in:
Shariq Ansari 2024-06-19 19:31:16 +05:30
parent 9da213c799
commit be7ac19cc7

View File

@ -10,6 +10,6 @@ def execute():
layout = json.loads(deal)
for section in layout:
if section.get("label") in ["Select Organization", "Organization Details", "Select Contact", "Contact Details"]:
section["editable"] = True
section["editable"] = False
frappe.db.set_value("CRM Fields Layout", "CRM Deal-Quick Entry", "layout", json.dumps(layout))