From fd9de12de1033a168c27cf58cdeabf34ec1d6831 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Carreras Date: Tue, 19 Nov 2024 15:29:36 -0300 Subject: [PATCH] [FIX]base_report_to_print_node: patch for OCA X-original-commit: f0703f7c8a9521e5b44470d7d7b082dc57cda786 --- base_report_to_print_node/models/__init__.py | 1 + .../models/ir_actions_report.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 base_report_to_print_node/models/ir_actions_report.py 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()