diff --git a/base_report_to_print_node/models/__init__.py b/base_report_to_print_node/models/__init__.py index a996de7d..be045498 100644 --- a/base_report_to_print_node/models/__init__.py +++ b/base_report_to_print_node/models/__init__.py @@ -3,3 +3,4 @@ # directory ############################################################################## from . import printing_printer +from . import ir_actions_report diff --git a/base_report_to_print_node/models/ir_actions_report.py b/base_report_to_print_node/models/ir_actions_report.py new file mode 100644 index 00000000..79135872 --- /dev/null +++ b/base_report_to_print_node/models/ir_actions_report.py @@ -0,0 +1,12 @@ + + +from odoo import models + + +class IrActionsReport(models.Model): + _inherit = "ir.actions.report" + + def behaviour(self): + # Parche ADHOC por PR: https://github.com/OCA/report-print-send/pull/367 + self = self.with_context(skip_printer_exception=True) + return super().behaviour()