Hi,
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?
Chirag
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
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?
Chirag
Hi Chirag
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:
<template id="external_layout">
<!-- Multicompany -->
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"></t>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"></t>
</t><t t-call="report.external_layout_header" />
<t t-raw="0" />
<t t-call="report.external_layout_footer" />
</template>
how to remove company address from external layout
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
check here: https://github.com/odoo/odoo/blob/8.0/addons/report/views/layouts.xml#L46
Can you tell me how i could possibly move the customer details slightly higher next to company details but aligned left? I thought i could do it via the layout but doesn't look like it
Chirag you can simply add CSS to it with style= or by adding it to the CSS file.. so you'd have to play a bit with it until you get it as you want. You can use any CSS element as you'd do with HTML and css files.
Yenthe, I want to move the customer details like per the image (http://imagebin.ca/v/1nt5msR6LK44) - sorry didnt have enough karma to upload the image. Chirag
Fiddle around a bit with css.. position absolute etc will do the trick :) And don't forget to upvote/accept answers when they've helped you! This shows the community what are good answers and rewards the helper with some karma.
Yenthe, I want to move the customer details like per the image (http://imagebin.ca/v/1nt5msR6LK44) - sorry didnt have enough karma to upload the image. Chirag