コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6768 ビュー

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.

アバター
破棄
最善の回答

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.

 

 

アバター
破棄
関連投稿 返信 ビュー 活動
1
4月 15
6445
1
9月 17
5569
2
9月 17
6261
1
11月 16
4499
0
3月 15
3517