Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6746 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

 

 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 15
6430
1
thg 9 17
5565
2
thg 9 17
6255
1
thg 11 16
4498
0
thg 3 15
3510