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
fe9c7a54d3
Raise an error if no printer is configured
2017-10-03 18:13:07 +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
9c4ea8c10c
Implements the print on the new 'report' model
2017-10-03 18:12:58 +02:00
Guewen Baconnier
f46ad66960
Migrate ir_report.py to new API
2017-10-03 18:12:54 +02:00
Guewen Baconnier
0f7bb5f8d6
Move base_report_to_printer to root from __unported__
2017-10-03 18:12:52 +02:00
Yannick Vaucher
e49f662403
move modules in __unported__ for 8.0
2017-10-03 18:12:52 +02:00
Lionel Sausin
489d419173
[IMP] Use short notation for browse and use pool[] instead of pool.get() as suggested by Pedro Manuel Baeza
2017-10-03 18:12:50 +02:00
Lionel Sausin
8f5b500f10
[FIX] user browse was incorrect and never returned records. Fix based on the patch from Egor Tsinko (etsinko)
2017-10-03 18:12:49 +02:00
Yannick Vaucher
2e4ebc8486
[IMP] base_report_to_printer - split code in multiple files
2017-10-03 18:05:18 +02:00