Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Base
  3. Report to printer v 12.0
  4. Sales Conditions FAQ

Report to printer

by Agile Business Group & Domsense https://github.com/OCA/report-print-send , Pegueroles SCP https://github.com/OCA/report-print-send , NaN https://github.com/OCA/report-print-send , LasLabs https://github.com/OCA/report-print-send , Camptocamp https://github.com/OCA/report-print-send , Odoo Community Association (OCA) https://github.com/OCA/report-print-send , Open for Small Business Ltd https://github.com/OCA/report-print-send
Odoo 7
v 8.0 v 9.0 v 10.0 v 11.0 v 12.0 Third Party 12374
Download for v 12.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 1318
Technical Name base_report_to_printer
LicenseAGPL-3
Websitehttp://www.agilebg.com
Versions 8.0 9.0 10.0 11.0 12.0 13.0 14.0 15.0 16.0
You bought this module and need support? Click here!

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
  • Configuration
  • Usage
  • Changelog
    • 12.0.1.0.0 (2018-02-04)
  • Bug Tracker
  • Credits
    • Authors
    • Contributors
    • Maintainers

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

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

  • 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>
  • Dave Lasley <dave@laslabs.com>
  • Sylvain Garancher <sylvain.garancher@syleam.fr>
  • Jairo Llopis <jairo.llopis@tecnativa.com>
  • Graeme Gellatly <graeme@o4sb.com>
  • Akim Juillerat <akim.juillerat@camptocamp.com>
  • Alexandre Fayolle <alexandre.fayolle@camptocamp.com>

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.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
  • Ratings
  • Discuss
Great module !
by
Nomazy
on 5/27/21, 12:57 PM

I updated to V13 with

  • delete all the @api.multi in .py,  and oldname in printing_action.py

  • add name in <tree string="Printers" name="printers"> in printing_printer.xml and delete colors style,

  • delete in same file and in printing_server.xml and in printing_printer_wizard_view.xml :

    '<field name="view_type">form</field>'
  • delete the fail function in qweb_action_manager.js

It's working fine and very useful.

Except the printer alarm function, I am wondering how to replace a fail function in v13 where odoo remove jquery deferred dependency.


Fails to deploy
by
Maurice
on 2/4/20, 1:54 AM

Tried cloning and deploying directly from here and it fails with various errors. Module not found, etc... Unusable.


Traceback while deploying on odoo.sh
by
Jainesh Shah
on 2/6/20, 5:51 AM

During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/modules/registry.py", line 86, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/home/odoo/src/odoo/odoo/modules/loading.py", line 386, in load_modules modules.button_install() File "", line 2, in button_install File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 74, in check_and_log return method(self, *args, **kwargs) File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 394, in button_install modules._state_update('to install', ['uninstalled']) File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 371, in _state_update self.check_external_dependencies(module.name, newstate) File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 344, in check_external_dependencies raise UserError(msg % (module_name, e.args[0])) odoo.exceptions.UserError: ('Unable to install module "base_report_to_printer" because an external dependency is not met: No module named cups', '') 2020-02-06 10:46:33,109 7 CRITICAL jdcdev-nshore-12-app-base-report-to-printer-0-860765 odoo.service.server: Failed to initialize database `jdcdev-nshore-12-app-base-report-to-printer-0-860765`. Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 322, in _check_external_dependencies importlib.import_module(pydep) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 953, in _find_and_load_unlocked ModuleNotFoundError: No module named 'cups'


How can i configure a printer from the menu?
by
William
on 9/4/19, 3:15 PM

I installed on server the module, i can see the menu, when i hit update printers, nothing happens but the interface to create a printer opens up. I tried to create one printer, but how can i create a printer so i can print invoices using a windows client machine? The server has ubuntu. the odoo is v12 ce. thanks


Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with