Commit Graph

6 Commits

Author SHA1 Message Date
Nicolas Bessi
cd8455e287 Fix set the skip directive in context
instead of a faulty return
2015-03-20 16:49:57 +01:00
Nicolas Bessi
6934e02fa5 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'
2015-03-20 16:49:57 +01:00
Guewen Baconnier
5cc2eec8d6 When get_pdf has no printer, just create the pdf file
And do not print anything, instead of raising an error.
2015-01-26 11:55:26 +01:00
Guewen Baconnier
22cde58f0e 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
2015-01-21 15:39:41 +01:00
Guewen Baconnier
00fbd09338 We need the report in print_document and print options (needed in
printer_tray)
2014-11-17 14:38:34 +01:00
Guewen Baconnier
aa22f62bbb Implements the print on the new 'report' model 2014-11-17 13:15:03 +01:00