Odoo

Report Action

Report declaration Reports in Open ERP are explained in chapter “Reports Reporting”. Here’s an example of a XML file that declares a RML report :

<?xml version="1.0"?>
<terp>
<data>
<report id="sale_category_print" string="Sales Orders By Categories" model="sale.order"
name="sale_category.print" rml="sale_category/report/sale_category_report.rml" menu="True" auto="False"/>
</data>
</terp>

A report is declared using a report tag inside a “data” block. The different arguments of a report tag are :

  • id : an identifier which must be unique.

  • string : the text of the menu that calls the report (if any, see below).

  • model : the Open ERP object on which the report will be rendered.

  • rml : the .RML report model. Important Note : Path is relative to addons/ directory.

  • menu : whether the report will be able to be called directly via the client or not. Setting menu to False is useful in case of reports called by wizards.

  • auto : determines if the .RML file must be parsed using the default parser or not. Using a custom parser allows you to define additional functions to your report.