Commit 57a7b670 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_hal_json_style: Add support for object_action

parent 8dcb5112
...@@ -796,7 +796,7 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None, ...@@ -796,7 +796,7 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
if (view == view_action['id']): if (view == view_action['id']):
embedded_url = '%s' % view_action['url'] embedded_url = '%s' % view_action['url']
if erp5_action_key in (view_action_type, "view", "workflow", "object_new_content_action", "object_clone_action", "object_delete_action"): if erp5_action_key in (view_action_type, "view", "workflow", "object_new_content_action", "object_clone_action", "object_delete_action", "object_action"):
erp5_action_list[-1]['href'] = url_template_dict["traverse_generator"] % { erp5_action_list[-1]['href'] = url_template_dict["traverse_generator"] % {
"root_url": site_root.absolute_url(), "root_url": site_root.absolute_url(),
......
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