[9.0] Add printer_zpl2 module (#66)

* [FIX] printer_tray: Allow to call print_option with no report

* [ADD] Add printer_zpl2 module
This commit is contained in:
Sylvain Garancher
2017-04-04 19:23:07 +02:00
committed by Dave Lasley
parent e7b2c5f317
commit c47e604857
18 changed files with 1758 additions and 16 deletions

View File

@@ -113,6 +113,11 @@ class TestPrintingPrinter(TransactionCase):
'system_name': 'Action tray',
})
# No report passed
self.env.user.printer_tray_id = False
options = self.Model.print_options()
self.assertFalse('InputSlot' in options)
# No tray defined
self.env.user.printer_tray_id = False
report.printer_tray_id = False