Skip to content

Commit 2ff3cdc

Browse files
committed
[MIG] report_substitute: Migration to 17.0
1 parent 2055777 commit 2ff3cdc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

report_substitute/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"summary": """
77
This module allows to create substitution rules for report actions.
88
""",
9-
"version": "16.0.1.0.1",
9+
"version": "17.0.1.0.0",
1010
"license": "AGPL-3",
1111
"author": "ACSONE SA/NV," "Odoo Community Association (OCA)",
1212
"website": "https://github.com/OCA/reporting-engine",

report_substitute/models/ir_actions_report.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ def get_substitution_report_action(self, action, active_ids):
5252
def _render(self, report_ref, res_ids, data=None):
5353
report = self._get_report(report_ref)
5454
substitution_report = report.get_substitution_report(res_ids)
55-
return super(IrActionReport, self)._render(
55+
return super()._render(
5656
substitution_report.report_name, res_ids, data=data
5757
)
5858

5959
def _render_qweb_pdf(self, report_ref, res_ids=None, data=None):
6060
report = self._get_report(report_ref)
6161
substitution_report = report.get_substitution_report(res_ids)
62-
return super(IrActionReport, self)._render_qweb_pdf(
62+
return super()._render_qweb_pdf(
6363
substitution_report, res_ids=res_ids, data=data
6464
)
6565

report_substitute/tests/test_report_substitute.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class TestReportSubstitute(TransactionCase):
99
def setUp(self):
1010
# In the demo file we create a new report for ir.module.module model
1111
# with a substation rule from the original report action
12-
super(TestReportSubstitute, self).setUp()
12+
super().setUp()
1313
self.action_report = self.env.ref("base.ir_module_reference_print")
1414
self.res_ids = self.env.ref("base.module_base").ids
1515
self.substitution_rule = self.env.ref(

0 commit comments

Comments
 (0)