Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6747 Vistas

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>
    </record>

    <ir_set>
    <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"/>
    </ir_set>

Can anybody help me? Please.

Avatar
Descartar
Mejor respuesta

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.

 

 

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
abr 15
6431
1
sept 17
5568
2
sept 17
6256
1
nov 16
4498
0
mar 15
3512