Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

Footer not showing at the bottom (PDF report) v18, custom purchase order print

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
2 Răspunsuri
140 Vizualizări
Imagine profil
Thomas González

I'm trying to make a new report for purchase orders but no matter how i try it doesn't go all the way down, there's a huge white space at the end after what i put as the footer, here is some of the stuff related to the code i have in my .xml template


<style>

.cea-bottom {

position: absolute;

left: 22px;

right: 22px;

bottom: 18px;

display: flex;

flex-direction: column;

gap: 10px;

}


.cea-signatures {

width: 100%;

font-size: 10px;

color: #000000;

}


.cea-signatures td {

text-align: center;

padding-top: 40px;

}


.cea-footer-bar {

margin-top: 18px;

background: #398ec4;

color: #ffffff;

text-align: center;

padding: 6px 0 5px;

font-size: 10px;

}

</style>


....


<div class="cea-bottom">

<table class="cea-signatures">

<tr>

<td>

___<br/>

<span t-esc="o.userid.name"/><br/>

DIGITADA POR

</td>

<td>

__<br/>

<span t-esc="o._fields.get('approver_id') and o.approver_id.name or o.user_id.name"/><br/>

APROBADA POR

</td>

</tr>

</table>


<div class="cea-footer-bar">

Sample text

</div>

</div>





and here's the format i'm using


<odoo>

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

<field name="name">Orden de compras CEA</field>

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

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

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

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

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

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

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

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

</record>



0
Imagine profil
Abandonează
Imagine profil
Cybrosys Techno Solutions Pvt.Ltd
Cel mai bun răspuns

Hi,


The issue occurs because Odoo’s built-in PDF layout wraps your report inside containers that add hidden padding and minimum height. Even if your footer uses position: absolute at the bottom, it cannot reach the physical page edge because Odoo’s external layout imposes extra space. This creates the large white gap at the bottom.

To fix it, you must either bypass or override Odoo’s default layout. One approach is to use a minimal layout such as web.minimal_layout, which removes most internal padding, then place all report content inside a wrapper with position: relative and place your footer absolutely at the bottom. This ensures the footer aligns correctly. Another option is to keep the default layout but create your own wrapper with min-height: 100% and apply your absolute footer inside it.

Adjusting the paper format may also help: setting margins to zero, defining page width/height explicitly, and forcing header_spacing = 0 prevents wkhtmltopdf from inserting its own spacing. Once these constraints are removed, your footer can sit at the very bottom.

In short, the white space is caused by default Odoo layout padding. Switching to a minimal layout or explicitly overriding the wrapper structure allows your footer to render flush at the bottom of the page.


Hope it helps

0
Imagine profil
Abandonează
Imagine profil
381inessas
Cel mai bun răspuns

Hey Thomas, great start! Try setting position: fixed; for .cea-bottom instead of absolute. Also, check your margin-bottom in the paperformat record; even a small value can cause issues. Maybe related to version differences? Hope this helps with your reporting needs! 

-1
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now