mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[FIX] Update tests to new return signature of behaviour
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user