Commit Graph

5 Commits

Author SHA1 Message Date
Nicolas Bessi
2a1e3dabe1 Compatibility fix for report with custom parser
By calling `super.get_pdf` in print_document we can encounter trouble with MRO resolution
that prevent custom report parser (e.g. override of `get_pdf`) to be called.

The fix consist of not calling `super` and prevent multiple call to 'printer.print_document'
2017-10-03 18:13:09 +02:00
Guewen Baconnier
e8058b21a2 When get_pdf has no printer, just create the pdf file
And do not print anything, instead of raising an error.
2017-10-03 18:13:08 +02:00
Guewen Baconnier
83170107a8 Do no longer returns a PDF when a report is printed
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes #16
2017-10-03 18:13:07 +02:00
Guewen Baconnier
39bd5e94e4 We need the report in print_document and print options (needed in
printer_tray)
2017-10-03 18:13:00 +02:00
Guewen Baconnier
9c4ea8c10c Implements the print on the new 'report' model 2017-10-03 18:12:58 +02:00