Code Analysis

Views touched (18)
XML IDNameModelTypeStatus
act_report_xml_view_inherit act_report_xml_view_inherit ir.actions.report.xml Inherits base.act_report_xml_view
act_report_xml_view_inherit_report ir.actions.report.xml.form.inherit ir.actions.report.xml form 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 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
HTTP endpoints (0)

No HTTP endpoints found for this module.

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

Loading…

Loading…