Commit 1360974c authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

erp5_xhtml_style: Add support for object_action_jio

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