From bfc72bfb6e4df62635bb2038325a75c467df77fa Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 30 Dec 2024 16:46:21 +0530 Subject: [PATCH] fix: read_only fields are not getting disabled --- crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py | 1 + frontend/src/components/FieldLayout.vue | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py b/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py index a20138c0..23552e5c 100644 --- a/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py +++ b/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py @@ -52,6 +52,7 @@ def get_fields_layout(doctype: str, type: str): "type": field.fieldtype, "options": getOptions(field), "mandatory": field.reqd, + "read_only": field.read_only, "placeholder": field.get("placeholder"), "filters": field.get("link_filters"), } diff --git a/frontend/src/components/FieldLayout.vue b/frontend/src/components/FieldLayout.vue index b68b4e51..3fc2621d 100644 --- a/frontend/src/components/FieldLayout.vue +++ b/frontend/src/components/FieldLayout.vue @@ -108,7 +108,13 @@ />