Report to printer - Paper tray selection

printer_tray
REPOSITORY
REPOSITORYOCA/report-print-send
GIT
GIThttps://github.com/OCA/report-print-send.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/report-print-send/tree/10.0/printer_tray
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPrinter
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSCamptocamp
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, Graeme Gellatly, ecino, Moises Lopez - https://www.vauxoo.com/, oca-travis, Weblate, OCA-git-bot, Sylvain GARANCHER
WEBSITE
WEBSITEhttp://www.camptocamp.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:02
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/report-print-send:
    - base_report_to_printer
odoo/odoo:
    - report
    - base
    - web
    - base_setup
    - web_kanban
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES cups
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
act_report_xml_view ir.actions.report.xml.add.printer.tray ir.actions.report.xml Inherits base_report_to_printer.act_report_xml_view
printing_printer_view_form printing.printer.form printing.printer Inherits base_report_to_printer.printing_printer_view_form
printing_report_xml_action_view_form printing.report.xml.action.form printing.report.xml.action Inherits base_report_to_printer.printing_report_xml_action_view_form
printing_report_xml_action_view_tree printing.report.xml.action.form printing.report.xml.action Inherits base_report_to_printer.printing_report_xml_action_view_tree
view_users_form res.users.form.add.printer.tray res.users Inherits base_report_to_printer.view_users_form
view_users_prefs res.users.form.printing.tray res.users Inherits base_report_to_printer.view_users_form_simple_modif
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (1)
  • printer_tray_id Many2one → printing.tray
    comodel_name='printing.tray' domain="[('printer_id', '=', printing_printer_id)]" string='Paper Source'
Public methods (1)
  • onchange_printing_printer_id(self)
    @api.onchange('printing_printer_id')
    Reset the tray when the printer is changed

New fields (1)
  • tray_ids One2many → printing.tray
    comodel_name='printing.tray' inverse_name='printer_id' string='Paper Sources'
Public methods (1)
  • print_options(self, report=None, format=None, copies=1)
    @api.multi
    Hook to define Tray

New fields (1)
  • printer_tray_id Many2one → printing.tray
    comodel_name='printing.tray' domain="[('printer_id', '=', printer_id)]" string='Paper Source'
Public methods (2)
  • behaviour(self)
    @api.multi
  • onchange_printer_id(self)
    @api.onchange('printer_id')
    Reset the tray when the printer is changed

New fields (3)
  • name Char
    required=True
  • printer_id Many2one → printing.printer
    comodel_name='printing.printer' ondelete='cascade' readonly=True required=True string='Printer'
  • system_name Char
    readonly=True required=True
Public methods (0)

No public methods.

New fields (1)
  • printer_tray_id Many2one → printing.tray
    comodel_name='printing.tray' domain="[('printer_id', '=', printing_printer_id)]" string='Default Printer Paper Source'
Public methods (1)
  • onchange_printing_printer_id(self)
    @api.onchange('printing_printer_id')
    Reset the tray when the printer is changed
REPOSITORY
REPOSITORYOCA/report-print-send
GIT
GIThttps://github.com/OCA/report-print-send.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/report-print-send/tree/9.0/printer_tray
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYPrinter
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSCamptocamp
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, Dave Lasley, oca-travis, Weblate, OCA-git-bot, Sylvain GARANCHER
WEBSITE
WEBSITEhttp://www.camptocamp.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:24
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/report-print-send:
    - base_report_to_printer
odoo/odoo:
    - report
    - base
    - web
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES cups
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
act_report_xml_view ir.actions.report.xml.add.printer.tray ir.actions.report.xml Inherits base_report_to_printer.act_report_xml_view
printing_printer_view_form printing.printer.form printing.printer Inherits base_report_to_printer.printing_printer_view_form
printing_report_xml_action_view_form printing.report.xml.action.form printing.report.xml.action Inherits base_report_to_printer.printing_report_xml_action_view_form
printing_report_xml_action_view_tree printing.report.xml.action.form printing.report.xml.action Inherits base_report_to_printer.printing_report_xml_action_view_tree
view_users_form res.users.form.add.printer.tray res.users Inherits base_report_to_printer.view_users_form
view_users_prefs res.users.form.printing.tray res.users Inherits base_report_to_printer.view_users_form_simple_modif
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (1)
  • printer_tray_id Many2one → printing.tray
    comodel_name='printing.tray' domain="[('printer_id', '=', printing_printer_id)]" string='Paper Source'
Public methods (1)
  • onchange_printing_printer_id(self)
    @api.onchange('printing_printer_id')
    Reset the tray when the printer is changed

New fields (1)
  • tray_ids One2many → printing.tray
    comodel_name='printing.tray' inverse_name='printer_id' string='Paper Sources'
Public methods (1)
  • print_options(self, report=None, format=None, copies=1)
    @api.multi
    Hook to define Tray

New fields (1)
  • printer_tray_id Many2one → printing.tray
    comodel_name='printing.tray' domain="[('printer_id', '=', printer_id)]" string='Paper Source'
Public methods (2)
  • behaviour(self)
    @api.multi
  • onchange_printer_id(self)
    @api.onchange('printer_id')
    Reset the tray when the printer is changed

New fields (3)
  • name Char
    required=True
  • printer_id Many2one → printing.printer
    comodel_name='printing.printer' ondelete='cascade' readonly=True required=True string='Printer'
  • system_name Char
    readonly=True required=True
Public methods (0)

No public methods.

New fields (1)
  • printer_tray_id Many2one → printing.tray
    comodel_name='printing.tray' domain="[('printer_id', '=', printing_printer_id)]" string='Default Printer Paper Source'
Public methods (1)
  • onchange_printing_printer_id(self)
    @api.onchange('printing_printer_id')
    Reset the tray when the printer is changed
REPOSITORY
REPOSITORYOCA/report-print-send
GIT
GIThttps://github.com/OCA/report-print-send.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/report-print-send/tree/8.0/printer_tray
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYPrinter
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSCamptocamp
COMMITTERS
COMMITTERSStéphane Bidoul, Yannick Vaucher, Guewen Baconnier, Alexandre Fayolle, Stéphane Bidoul (ACSONE), OCA Transbot, vrenaville, Dave Lasley, oca-travis, Weblate, OCA-git-bot, Maik Steinfeld
WEBSITE
WEBSITEhttp://www.camptocamp.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:27
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/report-print-send:
    - base_report_to_printer
odoo/odoo:
    - base
    - report
    - web
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES cups
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
action_report_xml_form ir.actions.report.xml.add.printer.tray ir.actions.report.xml Inherits base_report_to_printer.action_report_xml_form
view_printing_printer_form printing.printer.form printing.printer Inherits base_report_to_printer.view_printing_printer_form
view_printing_report_xml_action_form printing.report.xml.action.form printing.report.xml.action Inherits base_report_to_printer.printing_report_xml_action_form
view_printing_report_xml_action_tree printing.report.xml.action.form printing.report.xml.action Inherits base_report_to_printer.printing_report_xml_action_tree
view_users_form res.users.form.add.printer.tray res.users Inherits base_report_to_printer.view_printing_users_form
view_users_prefs res.users.form.printing.tray res.users Inherits base_report_to_printer.view_printing_users_prefs
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (1)
  • printer_tray_id Many2one → printing.tray
    comodel_name='printing.tray' domain="[('printer_id', '=', printing_printer_id)]" string='Paper Source'
Public methods (1)
  • onchange_printing_printer_id(self)
    @api.onchange('printing_printer_id')
    Reset the tray when the printer is changed

New fields (1)
  • tray_ids One2many → printing.tray
    comodel_name='printing.tray' inverse_name='printer_id' string='Paper Sources'
Public methods (1)
  • print_options(self, report, format, copies=1)
    @api.multi
    Hook to define Tray

New fields (1)
  • printer_tray_id Many2one → printing.tray
    comodel_name='printing.tray' domain="[('printer_id', '=', printer_id)]" string='Paper Source'
Public methods (2)
  • behaviour(self)
    @api.multi
  • onchange_printer_id(self)
    @api.onchange('printer_id')
    Reset the tray when the printer is changed

New fields (3)
  • name Char
    required=True
  • printer_id Many2one → printing.printer
    comodel_name='printing.printer' ondelete='cascade' readonly=True required=True string='Printer'
  • system_name Char
    readonly=True required=True
Public methods (0)

No public methods.

New fields (1)
  • printer_tray_id Many2one → printing.tray
    comodel_name='printing.tray' domain="[('printer_id', '=', printing_printer_id)]" string='Default Printer Paper Source'
Public methods (1)
  • onchange_printing_printer_id(self)
    @api.onchange('printing_printer_id')
    Reset the tray when the printer is changed
REPOSITORY
REPOSITORYOCA/report-print-send
GIT
GIThttps://github.com/OCA/report-print-send.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/report-print-send/tree/7.0/printer_tray
VERSION
VERSION 1.0
CATEGORY
CATEGORYPrinter
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSCamptocamp
COMMITTERS
COMMITTERSYannick Vaucher, Alexandre Fayolle, Laetitia Gangloff, Stéphane Bidoul (ACSONE), OCA Transbot
WEBSITE
WEBSITEhttp://www.camptocamp.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/report-print-send:
    - base_report_to_printer
OCA/reporting-engine:
    - base_report_assembler
odoo/odoo:
    - base
    - base_calendar
    - base_status
    - mail
    - base_setup
    - web_kanban
    - web
    - base_action_rule
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES cups
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Report to printer - Paper tray selection
========================================

 **Author:** Camptocamp SA

 *This module extends `Report to printer` module.*

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

 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 exemple for prepinted
 paper such as payment slip.
 

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
action_report_xml_form ir.actions.report.xml.add.printer.tray ir.actions.report.xml Inherits base_report_to_printer.action_report_xml_form
view_users_form res.users.form.add.printer.tray res.users Inherits base_report_to_printer.view_printing_users_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (0)

No new fields.

Public methods (1)
  • set_print_options(self, cr, uid, report_id, format, context=None)
    Hook to define Tray

New fields (0)

No new fields.

Public methods (1)
  • update_printers_status(self, db_name, uid, context=None)
    Add creation of tray if no tray are defined

New fields (0)

No new fields.

Public methods (1)
  • behaviour(self, cr, uid, act_id, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.