Merge branch 'fix_typo_printer_tray_id' of https://github.com/vrenaville/report-print-send into 8.0

This commit is contained in:
Yannick Vaucher
2015-11-24 13:42:06 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -92,8 +92,8 @@ class Printer(models.Model):
('user_id', '=', self.env.uid),
('action', '!=', 'user_default')],
limit=1)
if action and action.printer_tray_id:
tray = action.tray_id
if printer_tray_id:
tray = action.printer_tray_id
if tray:
options['InputSlot'] = str(tray.system_name)