From a514f470c5518faad7f859c8fae92496c714cd1a Mon Sep 17 00:00:00 2001 From: David Date: Wed, 9 Oct 2024 12:14:39 +0200 Subject: [PATCH] [FIX] base_report_to_label_printer: adapt to printer exceptions handling --- base_report_to_label_printer/tests/test_ir_actions_report.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base_report_to_label_printer/tests/test_ir_actions_report.py b/base_report_to_label_printer/tests/test_ir_actions_report.py index 25bab84..aafefe8 100644 --- a/base_report_to_label_printer/tests/test_ir_actions_report.py +++ b/base_report_to_label_printer/tests/test_ir_actions_report.py @@ -10,7 +10,9 @@ class TestIrActionsReport(TransactionCase): super().setUpClass() cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) - cls.Model = cls.env["ir.actions.report"] + cls.Model = cls.env["ir.actions.report"].with_context( + skip_printer_exception=True + ) cls.server = cls.env["printing.server"].create({}) def new_printer(self):