Report

report
REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/10.0/report
VERSION
VERSION 0.1.0
CATEGORY
CATEGORYBase
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLEYes
AUTHORS
AUTHORS
MAINTAINERS
MAINTAINERS
COMMITTERS
COMMITTERSRaphael Collet, Odoo Translation Bot, Christophe Matthieu, Martin Trigaux, Olivier Dony, Thibault Delavallée, Denis Ledoux, Fabien Meghazi, Christophe Simonis, David Monjoie, Goffin Simon, Simon Lejeune, Nicolas Martinelli, Julien Legros, xmo-odoo, Richard Mathot, qdp-odoo, Géry Debongnie, pvy, Yannick Tivisse, qsm-odoo, Martin Geubelle
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-05 23:50:47
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - web
    - base_setup
    - web_kanban
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Report
        

Code Analysis

Views touched (18)
XML IDNameModelTypeStatus
act_report_xml_view_inherit act_report_xml_view_inherit ir.actions.report.xml data Inherits base.act_report_xml_view
act_report_xml_view_inherit_report ir.actions.report.xml.form.inherit ir.actions.report.xml data Inherits base.act_report_xml_view
assets_backend report assets ir.ui.view qweb Inherits web.assets_backend
base_config_settings_inherited base.config.settings.inherited base.config.settings data Inherits base_setup.view_general_configuration
external_layout external_layout ir.ui.view qweb New
external_layout_footer external_layout_footer ir.ui.view qweb New
external_layout_header external_layout_header ir.ui.view qweb New
html_container html_container ir.ui.view qweb New
internal_layout internal_layout ir.ui.view qweb New
layout Report layout ir.ui.view qweb New
minimal_layout minimal_layout ir.ui.view qweb New
paperformat_view_form paper_format_view_form report.paperformat form New
paperformat_view_tree paper_format_view_tree report.paperformat tree New
preview_externalreport preview_externalreport ir.ui.view qweb New
preview_internalreport preview_internalreport ir.ui.view qweb New
report.assets_common report.assets_common ir.ui.view qweb New
report.assets_editor report.assets_editor ir.ui.view qweb New
report.assets_pdf report.assets_pdf ir.ui.view qweb New
Models touched (8)

New fields (1)
  • paperformat_id Many2one
    related='company_id.paperformat_id' string='Paper format *'
Public methods (3)
  • edit_external_footer(self)
  • edit_external_header(self)
  • edit_internal_header(self)

New fields (2)
  • paperformat_id Many2one → report.paperformat
    args: 'report.paperformat', 'Paper format'
  • print_report_name Char
    help='This is the filename of the report going to download. Keep empty to not change the report filename. You can use a python expression with the object and time variables.' args: 'Printed Report Name'
Public methods (1)
  • associated_view(self)
    @api.multi
    Used in the ir.actions.report.xml form view in order to search naively after the view(s) used in the rendering.

New fields (0)

No new fields.

Public methods (1)
  • session_info(self)

New fields (0)

No new fields.

Public methods (2)
  • from_html(self, model, field, element)
    @api.model
  • value_to_html(self, value, options=None)
    @api.model

New fields (0)

No new fields.

Public methods (5)
  • barcode(self, barcode_type, value, width=600, height=100, humanreadable=0)
  • get_action(self, docids, report_name, data=None)
    @api.noguess
    Return an action of type ir.actions.report.xml. :param docids: id/ids/browserecord of the records to print (if not used, pass an empty list) :param report_name: Name of the template to generate an action for
  • get_html(self, docids, report_name, data=None)
    @api.model
    This method generates and returns html version of a report.
  • get_pdf(self, docids, report_name, html=None, data=None)
    @api.model
    This method generates and returns pdf version of a report.
  • render(self, template, values=None)
    @api.multi
    Allow to render a QWeb template python-side. This function returns the 'ir.ui.view' render but embellish it with some variables/methods used in reports. :param values: additionnal methods/variables used in the rendering :returns: html representation of the template

New fields (0)

No new fields.

Public methods (1)
  • render_html(self, docids, data=None)
    @api.model

New fields (14)
  • default Boolean
    args: 'Default paper format ?'
  • dpi Integer
    default=90 required=True args: 'Output DPI'
  • format Selection
    default='A4' help='Select Proper Paper size' args: [('A0', 'A0 5 841 x 1189 mm'), ('A1', 'A1 6 594 x 841 mm'), ('A2', 'A2 7 420 x 594 mm'), ('A3', 'A3 8 297 x 420 mm'), ('A4', 'A4 0 210 x 297 mm, 8.26 x 11.69 inches'), ('A5', 'A5 9 148 x 210 mm'), ('A6', 'A6 10 105 x 148 mm'), ('A7', 'A7 11 74 x 105 mm'), ('A8', 'A8 12 52 x 74 mm'), ('A9', 'A9 13 37 x 52 mm'), ('B0', 'B0 14 1000 x 1414 mm'), ('B1', 'B1 15 707 x 1000 mm'), ('B2', 'B2 17 500 x 707 mm'), ('B3', 'B3 18 353 x 500 mm'), ('B4', 'B4 19 250 x 353 mm'), ('B5', 'B5 1 176 x 250 mm, 6.93 x 9.84 inches'), ('B6', 'B6 20 125 x 176 mm'), ('B7', 'B7 21 88 x 125 mm'), ('B8', 'B8 22 62 x 88 mm'), ('B9', 'B9 23 33 x 62 mm'), ('B10', ':B10 16 31 x 44 mm'), ('C5E', 'C5E 24 163 x 229 mm'), ('Comm10E', 'Comm10E 25 105 x 241 mm, U.S. Common 10 Envelope'), ('DLE', 'DLE 26 110 x 220 mm'), ('Executive', 'Executive 4 7.5 x 10 inches, 190.5 x 254 mm'), ('Folio', 'Folio 27 210 x 330 mm'), ('Ledger', 'Ledger 28 431.8 x 279.4 mm'), ('Legal', 'Legal 3 8.5 x 14 inches, 215.9 x 355.6 mm'), ('Letter', 'Letter 2 8.5 x 11 inches, 215.9 x 279.4 mm'), ('Tabloid', 'Tabloid 29 279.4 x 431.8 mm'), ('custom', 'Custom')], 'Paper size'
  • header_line Boolean
    default=False args: 'Display a header line'
  • header_spacing Integer
    default=35 args: 'Header spacing'
  • margin_bottom Float
    default=20 args: 'Bottom Margin (mm)'
  • margin_left Float
    default=7 args: 'Left Margin (mm)'
  • margin_right Float
    default=7 args: 'Right Margin (mm)'
  • margin_top Float
    default=40 args: 'Top Margin (mm)'
  • name Char
    required=True args: 'Name'
  • orientation Selection
    default='Landscape' args: [('Landscape', 'Landscape'), ('Portrait', 'Portrait')], 'Orientation'
  • page_height Integer
    default=False args: 'Page height (mm)'
  • page_width Integer
    default=False args: 'Page width (mm)'
  • report_ids One2many → ir.actions.report.xml
    help='Explicitly associated reports' args: 'ir.actions.report.xml', 'paperformat_id', 'Associated reports'
Public methods (0)

No public methods.

New fields (1)
  • paperformat_id Many2one → report.paperformat
    args: 'report.paperformat', 'Paper format'
Public methods (4)
  • edit_external_footer(self)
    @api.multi
  • edit_external_header(self)
    @api.multi
  • edit_internal_header(self)
    @api.multi
  • init(self)
    @api.model_cr
REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/9.0/report
VERSION
VERSION 1.0
CATEGORY
CATEGORYBase
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLEYes
AUTHORS
AUTHORS
MAINTAINERS
MAINTAINERS
COMMITTERS
COMMITTERSRaphael Collet, Odoo Translation Bot, Christophe Matthieu, Martin Trigaux, Antony Lesuisse, Olivier Dony, Josse Colpaert, Denis Ledoux, Christophe Simonis, Simon Lejeune, Nicolas Lempereur, Richard Mathot, qdp-odoo, Géry Debongnie, Jeremy Kersten, Damien Bouvy, pvy, Yannick Tivisse, qsm-odoo
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-05 23:48:29
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - web
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Report
        

Code Analysis

Views touched (17)
XML IDNameModelTypeStatus
act_report_xml_view_inherit act_report_xml_view_inherit ir.actions.report.xml data Inherits base.act_report_xml_view
assets_backend report assets ir.ui.view qweb Inherits web.assets_backend
external_layout external_layout ir.ui.view qweb New
external_layout_footer external_layout_footer ir.ui.view qweb New
external_layout_header external_layout_header ir.ui.view qweb New
html_container html_container ir.ui.view qweb New
internal_layout internal_layout ir.ui.view qweb New
layout Report layout ir.ui.view qweb New
minimal_layout minimal_layout ir.ui.view qweb New
paperformat_view_form paper_format_view_form report.paperformat form New
paperformat_view_tree paper_format_view_tree report.paperformat tree New
preview_externalreport preview_externalreport ir.ui.view qweb New
preview_internalreport preview_internalreport ir.ui.view qweb New
report.assets_common report.assets_common ir.ui.view qweb New
report.assets_editor report.assets_editor ir.ui.view qweb New
report.assets_pdf report.assets_pdf ir.ui.view qweb New
reporting_settings_form_inherited view_company_form_inherited res.company data Inherits base.view_company_form
Models touched (7)

New fields (0)

No new fields.

Public methods (1)
  • associated_view(self, cr, uid, ids, context)
    Used in the ir.actions.report.xml form view in order to search naively after the view(s) used in the rendering.

New fields (0)

No new fields.

Public methods (2)
  • from_html(self, cr, uid, model, field, element, context=None)
  • value_to_html(self, cr, uid, value, field, options=None, context=None)

New fields (0)

No new fields.

Public methods (8)
  • barcode(self, barcode_type, value, width=600, height=100, humanreadable=0)
  • get_action(self, cr, uid, ids, report_name, data=None, context=None)
    @api.v7
    Return an action of type ir.actions.report.xml. :param ids: Ids of the records to print (if not used, pass an empty list) :param report_name: Name of the template to generate an action for
  • get_action(self, records, report_name, data=None)
    @api.v8
  • get_html(self, cr, uid, ids, report_name, data=None, context=None)
    @api.v7
    This method generates and returns html version of a report.
  • get_html(self, records, report_name, data=None)
    @api.v8
  • get_pdf(self, cr, uid, ids, report_name, html=None, data=None, context=None)
    @api.v7
    This method generates and returns pdf version of a report.
  • get_pdf(self, records, report_name, html=None, data=None)
    @api.v8
  • render(self, cr, uid, ids, template, values=None, context=None)
    Allow to render a QWeb template python-side. This function returns the 'ir.ui.view' render but embellish it with some variables/methods used in reports. :param values: additionnal methods/variables used in the rendering :returns: html representation of the template

New fields (0)

No new fields.

Public methods (1)
  • render_html(self, cr, uid, ids, data=None, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • edit_external_footer(self, cr, uid, ids, context=None)
  • edit_external_header(self, cr, uid, ids, context=None)
  • edit_internal_header(self, cr, uid, ids, context=None)

New fields (0)

No new fields.

Public methods (1)
  • init(self, cr)
REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/8.0/report
VERSION
VERSION 1.0
CATEGORY
CATEGORYBase
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLEYes
AUTHORS
AUTHORSOpenERP SA
MAINTAINERS
MAINTAINERSOpenERP SA
COMMITTERS
COMMITTERSRaphael Collet, Odoo Translation Bot, Martin Trigaux, Antony Lesuisse, Olivier Dony, Josse Colpaert, Quentin (OpenERP), Denis Ledoux, Fabien Meghazi, Christophe Simonis, David Monjoie, Xavier Morel, Simon Lejeune, Nicolas Martinelli, Richard Mathot, openerp-sle
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-05 23:45:38
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - web
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Report
        

Code Analysis

Views touched (13)
XML IDNameModelTypeStatus
act_report_xml_view_inherit act_report_xml_view_inherit ir.actions.report.xml data Inherits base.act_report_xml_view
assets_backend report assets ir.ui.view qweb Inherits web.assets_backend
external_layout external_layout ir.ui.view qweb New
external_layout_footer external_layout_footer ir.ui.view qweb New
external_layout_header external_layout_header ir.ui.view qweb New
html_container html_container ir.ui.view qweb New
internal_layout internal_layout ir.ui.view qweb New
layout layout ir.ui.view qweb Inherits web.layout
minimal_layout minimal_layout ir.ui.view qweb New
paperformat_view_form paper_format_view_form report.paperformat form New
paperformat_view_tree paper_format_view_tree report.paperformat tree New
reporting_settings_form_inherited view_company_form_inherited res.company data Inherits base.view_company_form
style style ir.ui.view qweb New
Models touched (6)

New fields (0)

No new fields.

Public methods (1)
  • associated_view(self, cr, uid, ids, context)
    Used in the ir.actions.report.xml form view in order to search naively after the view(s) used in the rendering.

New fields (0)

No new fields.

Public methods (1)
  • value_to_html(self, cr, uid, value, field, options=None, context=None)

New fields (0)

No new fields.

Public methods (9)
  • barcode(self, barcode_type, value, width=600, height=100, humanreadable=0)
  • get_action(self, cr, uid, ids, report_name, data=None, context=None)
    @api.v7
    Return an action of type ir.actions.report.xml. :param ids: Ids of the records to print (if not used, pass an empty list) :param report_name: Name of the template to generate an action for
  • get_action(self, records, report_name, data=None)
    @api.v8
  • get_html(self, cr, uid, ids, report_name, data=None, context=None)
    @api.v7
    This method generates and returns html version of a report.
  • get_html(self, records, report_name, data=None)
    @api.v8
  • get_pdf(self, cr, uid, ids, report_name, html=None, data=None, context=None)
    @api.v7
    This method generates and returns pdf version of a report.
  • get_pdf(self, records, report_name, html=None, data=None)
    @api.v8
  • render(self, cr, uid, ids, template, values=None, context=None)
    Allow to render a QWeb template python-side. This function returns the 'ir.ui.view' render but embellish it with some variables/methods used in reports. :param values: additionnal methods/variables used in the rendering :returns: html representation of the template
  • translate_doc(self, cr, uid, doc_id, model, lang_field, template, values, context=None)
    Helper used when a report should be translated into a specific lang. <t t-foreach="doc_ids" t-as="doc_id"> <t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', account.report_invoice_document')"/> </t> :param doc_id: id of the record to translate :param model: model of the record to translate :param lang_field': field of the record containing the lang :param template: name of the template to translate into the lang_field

New fields (0)

No new fields.

Public methods (1)
  • render_html(self, cr, uid, ids, data=None, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • init(self, cr)