Odoo Help


report.external_layout location

on 1/12/15, 6:30 AM 4,448 views


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?



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

on 1/12/15, 6:48 AM

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.

on 1/12/15, 6:54 AM

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

on 1/12/15, 7:16 AM

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.

on 1/13/15, 1:57 AM

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

on 1/12/15, 7:14 AM


| 8 8 8

My Odoo blog: http://www.odoo.yenthevg.com/

My Twitter: https://twitter.com/Yenthe666

On 1/12/15, 6:34 AM

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-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" />


Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
| 5 5 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 1/12/15, 6:52 AM

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

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 1/12/15, 6:30 AM
Seen: 4448 times
Last updated: 3/16/15, 8:10 AM