I have looked everywhere on the forums and google the location suggested to alter "report.external_layout" is not in the reports menu. Is there any thing im over looking? is it anywhere else?
If id="report.external_layout", then report is module name i.e. technical name/folder name
So, the template definition is available at YOUR ODOO PATH
It is in the file layouts.xml that is under /addons/report/views/
The header, footer etc are defined here as defaults for all QWeb reports.
The header is <template id="external_layout_header"> and the footer is <template id="external_layout_footer">
which is both loaded at the top of layouts.xml here:
<!-- Multicompany -->
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"></t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"></t>
<t t-call="report.external_layout_header" />
<t t-raw="0" />
<t t-call="report.external_layout_footer" />
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
|Asked: 1/12/15, 6:30 AM|
|Seen: 2856 times|
|Last updated: 3/16/15, 8:10 AM|