typo, tray_id doesn't exist only printer_tray_id exist on the object

This commit is contained in:
vrenaville
2015-10-12 14:00:04 +02:00
committed by Sylvain GARANCHER
parent c52755ee47
commit 9c12be1f30

View File

@@ -93,7 +93,7 @@ class Printer(models.Model):
('action', '!=', 'user_default')],
limit=1)
if action and action.printer_tray_id:
tray = action.tray_id
tray = action.printer_tray_id
if tray:
options['InputSlot'] = str(tray.system_name)