mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[FIX] base_report_to_label_printer: adapt to printer exceptions handling
This commit is contained in:
@@ -10,7 +10,9 @@ class TestIrActionsReport(TransactionCase):
|
|||||||
super().setUpClass()
|
super().setUpClass()
|
||||||
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
|
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({})
|
cls.server = cls.env["printing.server"].create({})
|
||||||
|
|
||||||
def new_printer(self):
|
def new_printer(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user