Commit 93bfebce authored by Romain Courteaud's avatar Romain Courteaud

erp5_hal_json_style: expose object_list actions

parent d71a7212
......@@ -1564,14 +1564,14 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
global_action_type = ("view", "workflow", "object_new_content_action",
"object_clone_action", "object_delete_action",
"object_list_action", "object_jio_jump")
"object_list_action", "object_jio_jump", "object_list")
if (erp5_action_key == view_action_type or
erp5_action_key in global_action_type or
"_jio" in erp5_action_key) and not erp5_action_key.endswith("_raw"):
# select correct URL template based on action_type and form page template
url_template_key = "traverse_generator"
if erp5_action_key not in ("view", "object_view", "object_jio_view", "object_jio_jump"):
if erp5_action_key not in ("view", "object_list", "object_view", "object_jio_view", "object_jio_jump"):
url_template_key = "traverse_generator_action"
# but when we do not have the last form id we do not pass is of course
if not (current_action.get('view_id', '') or last_form_id):
......
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