Odoo Help

Welcome!

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

0

report.external_layout location

By
Chirag
on 1/12/15, 6:30 AM 2,850 views

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

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

Yenthe
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

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.

Yenthe
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

Chirag
on 1/12/15, 7:14 AM
0

Yenthe

--Yenthe--
6676
| 7 7 8
Turnhout, Belgium
--Yenthe--

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

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

Yenthe
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 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>

0

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
3883
| 5 3 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

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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