Commit 87a6aa69 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_xhtml_style: handle object_report_jio as object_report action_type

parent 8ea76b33
...@@ -3,6 +3,8 @@ actions that does not provide one. ...@@ -3,6 +3,8 @@ actions that does not provide one.
""" """
from Products.PythonScripts.standard import url_quote from Products.PythonScripts.standard import url_quote
if dialog_category == 'object_report':
return sorted(actions.get('object_report', []) + actions.get('object_report_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, [])
......
...@@ -102,6 +102,7 @@ ...@@ -102,6 +102,7 @@
tal:define="search_actions actions/object_search | nothing; tal:define="search_actions actions/object_search | nothing;
exchange_actions actions/object_exchange | nothing; exchange_actions actions/object_exchange | nothing;
report_actions actions/object_report | nothing; report_actions actions/object_report | nothing;
report_jio_actions actions/object_report_jio | nothing;
button_actions actions/object_button | nothing; button_actions actions/object_button | nothing;
fast_input_actions actions/object_fast_input | nothing; fast_input_actions actions/object_fast_input | nothing;
sort_actions actions/object_sort | nothing; sort_actions actions/object_sort | nothing;
...@@ -220,7 +221,7 @@ ...@@ -220,7 +221,7 @@
<span class="image"></span> <span class="image"></span>
<span class="description" i18n:translate="" i18n:domain="ui">Import / Export</span> <span class="description" i18n:translate="" i18n:domain="ui">Import / Export</span>
</button> </button>
<button tal:condition="report_actions" class="report" type="submit" name="Base_doReport:method" title="Report" <button tal:condition="report_actions | report_jio_actions" class="report" type="submit" name="Base_doReport:method" title="Report"
i18n:attributes="title" i18n:domain="ui"> i18n:attributes="title" i18n:domain="ui">
<span class="image"></span> <span class="image"></span>
<span class="description" i18n:translate="" i18n:domain="ui">Report</span> <span class="description" i18n:translate="" i18n:domain="ui">Report</span>
......
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