Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
6534 Widoki

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.

Awatar
Odrzuć
Autor

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

Autor

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.

Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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.

Najlepsza odpowiedź

- 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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lip 15
3871
1
mar 15
4445
5
maj 17
8690
6
sty 17
15457
0
sty 17
3672