mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
printer_tray: Allow to call print_option with no report
This commit is contained in:
committed by
Graeme Gellatly
parent
c59f9d6dd0
commit
e11cf228f1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user