* FIX format parameter
To be able to print files in raw format it's needed to set this parameter.
Previous code was not able to print raw files, but it didn't get error because 'format' used on line 107 is assumed as a format funtion, because format parameter was not on this scope.
* FIX pep8
The new API migration was made to @api.multi because of the "cr, uid,
ids" signature, but "ids" was the ids of the records to print here, not
the report's ids.
Also, the new API version of "get_pdf" get directly the ids of the
records to print in the standard module, not a recordset.
* [IMP] Updated unit tests
* [FIX] Fixed renamed attributes
* [FIX] Remove deleted fields
* [IMP] Add printing.server and printing.job models
* [IMP] Allow to cancel all jobs, enable, and disable printers
* [IMP] Split the cups part of print_document into a new print_file method
* [IMP] Updated cron job to run the action_update_jobs method
* [ADD] Add a migration script to create a printing server from configuration
cups is an external dependency, if it is not installed Odoo will not start.
OCA guidelines specify guidelines for External dependencies, code is from there.
* context was lost while getting report
* now it will be passed using with_context
* could be used for print_options (example: pass copies amount for
productlabals)
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'
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
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