diff --git a/report_substitute/__manifest__.py b/report_substitute/__manifest__.py index f709910410..cf3a2a90d9 100644 --- a/report_substitute/__manifest__.py +++ b/report_substitute/__manifest__.py @@ -6,7 +6,7 @@ "summary": """ This module allows to create substitution rules for report actions. """, - "version": "16.0.1.0.1", + "version": "17.0.1.0.0", "license": "AGPL-3", "author": "ACSONE SA/NV," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/reporting-engine", diff --git a/report_substitute/models/ir_actions_report.py b/report_substitute/models/ir_actions_report.py index ecd1e368b8..0c23de341c 100644 --- a/report_substitute/models/ir_actions_report.py +++ b/report_substitute/models/ir_actions_report.py @@ -52,16 +52,12 @@ def get_substitution_report_action(self, action, active_ids): def _render(self, report_ref, res_ids, data=None): report = self._get_report(report_ref) substitution_report = report.get_substitution_report(res_ids) - return super(IrActionReport, self)._render( - substitution_report.report_name, res_ids, data=data - ) + return super()._render(substitution_report.report_name, res_ids, data=data) def _render_qweb_pdf(self, report_ref, res_ids=None, data=None): report = self._get_report(report_ref) substitution_report = report.get_substitution_report(res_ids) - return super(IrActionReport, self)._render_qweb_pdf( - substitution_report, res_ids=res_ids, data=data - ) + return super()._render_qweb_pdf(substitution_report, res_ids=res_ids, data=data) def report_action(self, docids, data=None, config=True): if docids: diff --git a/report_substitute/tests/test_report_substitute.py b/report_substitute/tests/test_report_substitute.py index 88796624de..6772b976c7 100644 --- a/report_substitute/tests/test_report_substitute.py +++ b/report_substitute/tests/test_report_substitute.py @@ -9,7 +9,7 @@ class TestReportSubstitute(TransactionCase): def setUp(self): # In the demo file we create a new report for ir.module.module model # with a substation rule from the original report action - super(TestReportSubstitute, self).setUp() + super().setUp() self.action_report = self.env.ref("base.ir_module_reference_print") self.res_ids = self.env.ref("base.module_base").ids self.substitution_rule = self.env.ref(