[IMP] Allow to define a default printer for the printing wizard

This commit is contained in:
Florent de Labarre
2018-01-23 00:56:50 +01:00
parent 1025f6548b
commit 96c21e9870
2 changed files with 6 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ class TestWizardPrintRecordLabel(TransactionCase):
active_model='printing.printer',
active_id=self.printer.id,
active_ids=[self.printer.id],
printer_zpl2_id=self.printer.id,
)
wizard = wizard_obj.create({})
self.assertEqual(wizard.printer_id, self.printer)
@@ -87,6 +88,7 @@ class TestWizardPrintRecordLabel(TransactionCase):
active_model='printing.printer',
active_id=self.printer.id,
active_ids=[self.printer.id],
printer_zpl2_id=self.printer.id,
)
wizard = wizard_obj.create({})
self.assertEqual(wizard.label_id, self.label)