Odoo Help

Welcome!

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.

0

Replace Header/Footer with external module

By
Alex
on 6/8/14, 2:12 PM 1,812 views

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

Alex
on 6/10/14, 6:09 AM

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.

Alex
on 6/10/14, 6:11 AM
0
herbert6453
On 6/11/14, 11:22 AM

- 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

0
eLBati
On 6/10/14, 4:51 AM

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.

Alex
on 6/10/14, 5:50 AM

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

1 follower(s)

Stats

Asked: 6/8/14, 2:12 PM
Seen: 1812 times
Last updated: 3/16/15, 8:10 AM