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.

1

[v9] How to remove the background in the external_layout (header)?

By
Anabela Damas
on 7/15/16, 5:28 AM 241 views

Hi, 

I'm facing a issue with the company header, the  company info is using a lot of space and in the invoices the information of the client is covered by the header. 

It is possible to inherit the external layout and out the background transparent ?

Thanks,    

1
Nikunj Antala
On 7/16/16, 1:03 AM

Hello Anabela,

For decrease header space i think you may not need to change into external layout.

you can decrease Top Margin (mm) and header_spacing from Paper Formate as per your need. from "Settings >> Technical >> Reports >> Paper Format"

And if you want to set-up by code then create new paper format as per your need and link with your report.

Example:

For create New paper Format:

<record id="paperformat_custom" model="report.paperformat">

    <field name="name">European A4</field>

     <field name="default" eval="True" />

     <field name="format">A4</field>

     <field name="page_height">0</field>

     <field name="page_width">0</field>

     <field name="orientation">Portrait</field>

     <field name="margin_top">40</field>

     <field name="margin_bottom">23</field>

     <field name="margin_left">7</field>

     <field name="margin_right">7</field>

     <field name="header_line" eval="False" />

     <field name="header_spacing">35</field>

     <field name="dpi">90</field>

</record>

For link-up existing paper format with report:

<record id="<report_id>" model="ir.actions.report.xml">

     <field name="paperformat_id" ref="paperformat_custom"/>

</record>


Hope this helps.

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

1 follower(s)

Stats

Asked: 7/15/16, 5:28 AM
Seen: 241 times
Last updated: 7/16/16, 1:03 AM