Commit Graph

11 Commits

Author SHA1 Message Date
Nicolas Bessi
67ec48b4c3 Improve bloated condition test 2017-10-03 18:13:12 +02:00
Guewen Baconnier
679f21b39c dict.copy() is more efficient than calling dict 2017-10-03 18:13:11 +02:00
Guewen Baconnier
e991d88ba3 Vague method name, put the predicate method closer to its caller 2017-10-03 18:13:11 +02:00
Guewen Baconnier
55ed4e3206 Past tense is confusing 2017-10-03 18:13:11 +02:00
Guewen Baconnier
e6a846341b The alteration of the context has no effect 2017-10-03 18:13:10 +02:00
Nicolas Bessi
5095569ba5 Fix set the skip directive in context
instead of a faulty return
2017-10-03 18:13:10 +02:00
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