Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6532 มุมมอง

Is it possible to replace the default header and footer with a module like other reports where you can call them in .xml with <report> label?

For example to replace the sale order report,

<report 
            auto="False" 
            id="sale.report_sale_order" 
            model="sale.order" 
            name="sale.order.myreport"
            string="Sale Order Report"
            usage="default"/>

Wich is the id and model in that case? Thank you

PS: I don't want to use another report engine (aeroo, webkit, etc). I want to replace the rml if it's possible to do.

อวตาร
ละทิ้ง
ผู้เขียน

So, go to settings -> companies -> companies and edit the Header/Footer TAB

ผู้เขียน

Yes, I know that, but I want to know if it's possible to do the same with a module. Thank you for your answers anyway.

คำตอบที่ดีที่สุด

The ID is sale.report_sale_order and the model is ir.actions.report.xml

อวตาร
ละทิ้ง
ผู้เขียน

Maybe I don't explain it well. I would like to change the default company header that is included in all reports. Nothing about sale report.

คำตอบที่ดีที่สุด

- the  "rml_header" is a  field on res.company

- see <!-- Basic Company  --> chapter in the file  base_data.xml of the base module in the openerp server folder for an example

- in order to put rml text  inside a xml file you have to indicate it as text with markup

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ค. 15
3870
1
มี.ค. 15
4445
5
พ.ค. 17
8690
6
ม.ค. 17
15452
0
ม.ค. 17
3671