[FIX] Update tests to new return signature of behaviour

This commit is contained in:
Graeme Gellatly
2017-10-08 19:46:52 +13:00
parent 4375c7bc2f
commit 142cdfbb20
5 changed files with 66 additions and 65 deletions

View File

@@ -63,7 +63,7 @@ class IrActionsReport(models.Model):
action=user.printing_action or 'client',
printer=user.printing_printer_id or printer_obj.get_default(),
tray=str(user.printer_tray_id.system_name) if
user.printer_tray_id else False
user.printer_tray_id else False
)
@api.multi

View File

@@ -145,7 +145,7 @@ class PrintingPrinter(models.Model):
def _set_option_tray(self, report, value):
"""Note we use self here as some older PPD use tray
rather than InputSlot so we may need to query printer in override"""
return {'InputSlot': str(value)}
return {'InputSlot': str(value)} if value else {}
@staticmethod
def _set_option_noop(report, value):