fix: handle section.contacts also
(cherry picked from commit 47262761fed6770785a0530115f6c5fd884178de)
This commit is contained in:
parent
2e3a3016db
commit
6839824d7d
@ -47,7 +47,8 @@ def get_fields_layout(doctype: str, type: str, parent_doctype: str | None = None
|
||||
|
||||
for tab in tabs:
|
||||
for section in tab.get("sections"):
|
||||
section["columns"] = [column for column in section.get("columns") if column]
|
||||
if section.get("columns"):
|
||||
section["columns"] = [column for column in section.get("columns") if column]
|
||||
for column in section.get("columns") if section.get("columns") else []:
|
||||
column["fields"] = [field for field in column.get("fields") if field]
|
||||
for field in column.get("fields") if column.get("fields") else []:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user