Files
report-print-send/base_report_to_printer/README.rst
Guewen Baconnier 808b77f5a5 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
2022-12-07 09:31:48 +01:00

56 lines
1.4 KiB
ReStructuredText

Report to printer
-----------------
This module allows users to send reports to a printer attached to the server.
It adds an optional behaviour on reports to send it directly to a printer.
* `Send to Client` is the default behaviour providing you a downloadable PDF
* `Send to Printer` prints the report on selected printer
Report behaviour is defined by settings.
Settings can be configured:
* globaly
* per user
* per report
* per user and report
After installing enable the "Printing / Print Operator" option under access
rights to give users the ability to view the print menu.
To show all available printers for your server, use the
`Settings/Configuration/Printing/Update Printers from CUPS` wizard.
Then go to the user profile and set the users printing action and default
printer.
Caveat
------
The notification when a report is sent to a printer will not be
displayed for the deprecated report types (RML, Webkit, ...).
Dependencies
------------
This module requires pycups
https://pypi.python.org/pypi/pycups
Contributors
------------
* Ferran Pegueroles <ferran@pegueroles.com>
* Albert Cervera i Areny <albert@nan-tic.com>
* Davide Corio <davide.corio@agilebg.com>
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Yannick Vaucher <yannick.vaucher@camptocamp.com>
* Lionel Sausin <ls@numerigraphe.com>
* Guewen Baconnier <guewen.baconnier@camptocamp.com>