Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


how to add print report in OpenERP 7 using aeroo?

on 1/13/14, 3:35 AM 2,930 views

i created a form and it should generate multi-report. Hence, I expect to see the Print button in tree view like in Invoice Form but do not see anything. Just the More button. I have used the OpenERP 6 code. I don't know the code for OpenERP 7 for adding aeroo report in form.

OpenERP 6 code:

    <record id="pcf_report_id" model="ir.actions.report.xml">
        <field name="name">Print Document</field>
        <field name="type">ir.actions.report.xml</field>
        <field name="model">model.name</field>
        <field name="report_name">Report</field>
        <field name="report_type">aeroo</field>
        <field name="tml_source">file</field>
        <field name="in_format">oo-odt</field>
        <field name="out_format" eval="ref('report_aeroo_ooo.report_mimetypes_pdf_odt')"></field>
        <field name="parser_loc">module/parser/parser.py</field>
        <field name="report_rml">module/report/report.odt</field>
        <field name="parser_state">loc</field>

    <field eval="'action'" name="key"/>
    <field eval="'client_print_multi'" name="key2"/>
    <field eval="['model.name']" name="models"/>
    <field name="name">Report</field>
    <field eval="'ir.actions.report.xml,'+str(pcf_report_id)" name="value"/>
    <field eval="True" name="isobject"/>
    <field eval="True" name="replace"/>

Can anybody help me? Please.

On 10/16/14, 11:23 AM

It seems that the ir_set does not work anymore with 7.0, but you can achieve the same by creating an ir.values with a record statement <record model="ir.values" id="whatsoever"> and the same fields inside.



Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 1/13/14, 3:35 AM
Seen: 2930 times
Last updated: 3/16/15, 8:10 AM