From ec6a1f84eb7962cac52bfab411839595d2632e68 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 21 Feb 2025 14:44:33 +0530 Subject: [PATCH] fix: do not get default layout if type is Required Fields --- crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py | 2 +- 1 file changed, 1 insertion(+), 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 271a5da9..e44e3e20 100644 --- a/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py +++ b/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py @@ -24,7 +24,7 @@ def get_fields_layout(doctype: str, type: str, parent_doctype: str | None = None if layout and layout.layout: tabs = json.loads(layout.layout) - if not tabs: + if not tabs and type != "Required Fields": tabs = get_default_layout(doctype) has_tabs = tabs[0].get("sections") if tabs and tabs[0] else False