Commit Graph

13 Commits

Author SHA1 Message Date
Anthony Muschang
ab8fe22b47 [FIX] base_report_to_printer: make print_document callable from 8.0 api 2015-05-21 10:12:16 +02:00
Anthony Muschang
43f3ba36f5 [FIX] base_report_to_printer: make get_pdf callable from 8.0 api 2015-05-20 01:08:46 +02:00
Nicolas Bessi
9e3b34b60c Improve bloated condition test 2015-03-20 16:49:57 +01:00
Guewen Baconnier
68454324c6 dict.copy() is more efficient than calling dict 2015-03-20 16:49:57 +01:00
Guewen Baconnier
e50efff224 Vague method name, put the predicate method closer to its caller 2015-03-20 16:49:57 +01:00
Guewen Baconnier
a4fe4b0547 Past tense is confusing 2015-03-20 16:49:57 +01:00
Guewen Baconnier
3159f3fa6d The alteration of the context has no effect 2015-03-20 16:49:57 +01:00
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