Commit 421bc2d5 authored by Jérome Perrin's avatar Jérome Perrin

forge: update "Create Report" to create ERP5JS compatible reports

`object_report` and `object_exchange` action categories are only enabled
in erp5_xhtml_style. Use the `jio` equivalent categories so that the
generated report is also enabled in ERP5JS.
parent e62148b3
Pipeline #16747 failed with stage
in 0 seconds
......@@ -83,7 +83,7 @@ type_information.addAction(
"string:${object_url}/%s" % dialog_form_name,
'',
'View',
'object_report',
'object_jio_report',
priority=max_priority+1,)
type_information.addAction(
......@@ -92,7 +92,7 @@ type_information.addAction(
"string:${object_url}/%s?your_portal_skin=ODS&your_format=" % dialog_form_name,
"python: getattr(portal.portal_skins, 'erp5_ods_style', None) is not None",
'View',
'object_exchange',
'object_jio_exchange',
priority=max_priority+1,)
......
......@@ -51,10 +51,10 @@ class TestBusinessTemplateScripts(ERP5TypeTestCase):
['Report created.'],
urlparse.parse_qs(resp_url.query)['portal_status_message'])
# report is usable
# report is usable (also in ERP5JS)
action, = [
a for a in self.portal.portal_actions.listFilteredActionsFor(
self.portal.foo_module)['object_report']
self.portal.foo_module)['object_jio_report']
if a['name'] == 'Dummy Report'
]
self.assertEqual('dummy_report_report', action['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