Hello,
I am working in a custom module and, as the title says, I am trying to modify the invoice report template. What I am trying to achieve is:
The user creates an invoice.
The invoice created has one or more extra pages with some custom details.
These new pages have their own header and footer. It is like get two different (but related) reports at once.
What I have done is:
I have created two new models, invoice.details and invoice.details.line.
When the user creates a new invoice, an invoice.details and its lines are created and related to this new invoice.
Then I created a new view that inherits the template view and adds a new table with the data of the invoice.details.lines.
Now I see this new table in the invoice report preview, but if I download the invoice report or try to print it, my changes aren't there so I think there are more templates that I have to modify but I can't find them.
The template that I am modifying at this moment is the "external_layout_standard" located in odoo/addons/web/views/report_templates.xml.
Where can I find the other templates that I have to modify?
Thank you.
Odoo QWEB Reporting:
1- https://goo.gl/tg2Zyp
2- https://goo.gl/KZEo8X