Skip to main content
Odoo Community Association

Report to printer

Beta License: AGPL-3 OCA/report-print-send Translate me on Weblate Try me on Runboat

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

It detects trays on printers installation plus permits to select the paper source on which you want to print directly.

Report behaviour is defined by settings.

You will find this option on default user config, on default report config and on specific config per user per report.

This allows you to dedicate a specific paper source for example for preprinted paper such as payment slip.

Settings can be configured:

  • globally

  • per user

  • per report

  • per user and report

Table of contents

Installation

To install this module, you need to:

  1. Install PyCups - https://pypi.python.org/pypi/pycups

sudo apt-get install cups
sudo apt-get install libcups2-dev
sudo apt-get install python3-dev
sudo pip install pycups

Configuration

To configure this module, you need to:

  1. Enable the “Printing / Print User” option under access rights to give users the ability to view the print menu.

The jobs will be sent to the printer with a name matching the print_report_name of the report (truncated at 80 characters). By default this will not be displayed by CUPS web interface or in Odoo. To see this information, you need to change the configuration of your CUPS server and set the JobPrivateValue directive to “none” (or some other list of values which does not include “job-name”) , and reload the server. See cupsd.conf(5) <https://www.cups.org/doc/man-cupsd.conf.html> for details.

Usage

Guidelines for use:

  • To update the CUPS printers in Settings > Printing > Update Printers from CUPS

  • To print a report on a specific printer or tray, you can change these in Settings > Printing > Reports to define default behaviour.

  • To print a report on a specific printer and/or tray for a user, you can change these in Settings > Printing > Reports in Specific actions per user

  • Users may also select a default action, printer or tray in their preferences.

When no tray is configured for a report and a user, the default tray setup on the CUPS server is used.

Changelog

13.0.1.0.0 (2019-09-30)

  • [RELEASE] Port from V12.

12.0.1.0.0 (2018-02-04)

  • [RELEASE] Port from V11.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Agile Business Group & Domsense

  • Pegueroles SCP

  • NaN

  • LasLabs

  • Camptocamp

  • Open for Small Business Ltd

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/report-print-send project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Metadata

Release files for odoo14-addon-base-report-to-printer 14.0.2.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo14-addon-base-report-to-printer 14.0.2.0.2
File Interpreter ABI Platform Actions
odoo14_addon_base_report_to_printer-14.0.2.0.2-py3-none-any.whl Python 3 none any Details for odoo14_addon_base_report_to_printer-14.0.2.0.2-py3-none-any.whl

Release files / odoo14_addon_base_report_to_printer-14.0.2.0.2-py3-none-any.whl

Download URL odoo14_addon_base_report_to_printer-14.0.2.0.2-py3-none-any.whl
Size 173.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d673328e750ec33a1b2aeecd7b33d4f402107ab9bae82c8ae9727a93846538e
BLAKE2b-256 checksum
How to use checksums
58110e51860097c41274b9dc5ad993b87e8c3fa9d45e1029023c8b449dcaa3b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Security for odoo14-addon-base-report-to-printer 14.0.2.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

14.0.2.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page