diff --git a/base_report_to_printer/__manifest__.py b/base_report_to_printer/__manifest__.py index aa0ed0b..998f1f8 100644 --- a/base_report_to_printer/__manifest__.py +++ b/base_report_to_printer/__manifest__.py @@ -8,7 +8,7 @@ { 'name': "Report to printer", - 'version': '11.0.2.2.0', + 'version': '11.0.2.3.0', 'category': 'Generic Modules/Base', 'author': "Agile Business Group & Domsense, Pegueroles SCP, NaN," " LasLabs, Camptocamp, Odoo Community Association (OCA)", diff --git a/base_report_to_printer/models/ir_actions_report.py b/base_report_to_printer/models/ir_actions_report.py index e316f06..a490ccc 100644 --- a/base_report_to_printer/models/ir_actions_report.py +++ b/base_report_to_printer/models/ir_actions_report.py @@ -129,6 +129,13 @@ class IrActionsReport(models.Model): return True return False + @api.noguess + def report_action(self, docids, data=None, config=True): + res = super().report_action(docids, data=data, config=config) + if not res.get('id'): + res['id'] = self.id + return res + def render_qweb_pdf(self, docids, data=None): """ Generate a PDF and returns it.