Commit 37e0decd authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Eteri

erp5_xhtml_style: Add support for object_action_jio

parent 311c93a8
......@@ -7,6 +7,9 @@ if dialog_category == 'object_report':
return sorted(actions.get('object_report', []) + actions.get('object_report_jio', []), key=lambda x: x["priority"])
elif dialog_category == 'object_exchange':
return sorted(actions.get('object_exchange', []) + actions.get('object_exchange_jio', []), key=lambda x: x["priority"])
elif dialog_category == 'object_action':
context.log(actions.get('object_action', []))
return sorted(actions.get('object_action', []) + actions.get('object_action_jio', []), key=lambda x: x["priority"])
if dialog_category != 'object_print':
return actions.get(dialog_category, [])
......
......@@ -63,7 +63,7 @@
i18n:translate="" i18n:domain="ui" />
</tal:block>
<option disabled="disabled">-- <tal:block i18n:translate="" i18n:domain="ui">Object</tal:block> --</option>
<tal:block tal:repeat="action actions/object_action | nothing">
<tal:block tal:repeat="action python:here.Base_fixDialogActions(actions, 'object_action') or []">
<option tal:content="action/name"
tal:attributes="value string:object ${action/url}"
i18n:translate="" i18n:domain="ui" />
......
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