We need the report in print_document and print options (needed in

printer_tray)
This commit is contained in:
Guewen Baconnier
2014-11-17 14:38:34 +01:00
committed by Sylvain GARANCHER
parent ad5e8b6e46
commit 39bd5e94e4
3 changed files with 6 additions and 5 deletions

View File

@@ -35,5 +35,5 @@ class Report(models.Model):
action = data['action']
printer = data['printer']
if action != 'client' and result:
printer.print_document(result, report.report_type)
printer.print_document(report, result, report.report_type)
return result