Commit fb7d1cee authored by Ayush Tiwari's avatar Ayush Tiwari

[erp5_hal_json_style]: Check for the editable in the updated json

parent 0cb6879f
...@@ -1920,8 +1920,10 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None, ...@@ -1920,8 +1920,10 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
# forbid editability only for fields not specified in editable_columns # forbid editability only for fields not specified in editable_columns
if select in editable_column_set: if select in editable_column_set:
continue continue
if isinstance(line[select], dict) and line[select].get('editable'): if (isinstance(line[select], dict) and
line[select]['editable'] = False line[select].get('field_gadget_param', None) is not None):
if line[select]['field_gadget_param'].get('editable'):
line[select]['field_gadget_param']['editable'] = False
if source_field is not None and source_field_meta_type == "ListBox": if source_field is not None and source_field_meta_type == "ListBox":
# Trigger count method if exist # Trigger count method if exist
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment