Odoo Help


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.


external_layout_header's fixed space can not be changed in PDF

Justas Stankevičius
on 4/21/16, 10:38 AM 379 views

I'm trying to hide external_layout_header template's elements (which will be moved to page div) using code:

<template id="e_commerce_external_layout_header" inherit_id="report.external_layout_header">

<xpath expr="//div[@class='header']" position="replace"></xpath>


,but when I print Sales Order/Quotation to PDF, external_layout_header template is empty as it should be, but there is some kind fixed space left, size of external_layout_header, when its not hidden.

This strange behavior I encountered only for external_layout_header, when I make changes for let's say sale.report_saleorder_document, the same replacing method works well, because no empty space is left, if element is replaced.

So my question is: Is it possible to remove that fixed header space, or maybe there is space reserved for header and it can not be removed?

Here is an example of header replaced and not: http://tinypic.com/r/13zzc6f/9

Jaydeep Barot (jar)
On 4/22/16, 1:13 AM

Hello justas stankevicius,

if  you wan't to remove space of header you have create a paperformat for "sale order / quotation" in report action "paperformat" and give "margin top = 7 or lower value".

see below link it will helpful to you



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)


Asked: 4/21/16, 10:38 AM
Seen: 379 times
Last updated: 4/24/16, 12:33 PM