15 lines
540 B
Python
15 lines
540 B
Python
import json
|
|
import jingrow
|
|
|
|
def execute():
|
|
if not jingrow.db.exists("CRM Fields Layout", "CRM Deal-Quick Entry"):
|
|
return
|
|
|
|
deal = jingrow.db.get_value("CRM Fields Layout", "CRM Deal-Quick Entry", "layout")
|
|
|
|
layout = json.loads(deal)
|
|
for section in layout:
|
|
if section.get("label") in ["Select Organization", "Organization Details", "Select Contact", "Contact Details"]:
|
|
section["editable"] = False
|
|
|
|
jingrow.db.set_value("CRM Fields Layout", "CRM Deal-Quick Entry", "layout", json.dumps(layout)) |