Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Printed Offers and Reports are missing the headers and footers

Odebírat

Get notified when there's activity on this post

This question has been flagged
invoicereportingv15
4 Odpovědi
8558 Zobrazení
Avatar
Josef Schmid

This is what my invoice and report layout looks like in the preview

It is the standard boxed layout except I changed one single thing: I removed the bottom horizontal separator

Here is the code( I highlighted the changes I did, which is only one line)


The changes I added work perfectly fine as you can see in the preview. (I know, I should add changes by adding a inherited view)

However, the moment I generate a pdf from this layout, it is missing the header and footer

This is what it looks like:


What am I doing wrong or what did I misconfigure?


Thank you for your help.


Info:

Odoo 15, Linux debian 11 bullseye, 2vCPUS 8GB Ram, 120 GB, odoo linux install (no docker)

1
Avatar
Zrušit
Avatar
Bernard Wilmus
Nejlepší odpověď

I have also the same problem on Odoo 16 Enterprise.

# wkhtmltopdf --version
wkhtmltopdf 0.12.6

The header and footer appear in the reports if I turn them into HTML report in the configuration.

So, I guess the problem is linked to wkhtmltopdf and a bad understanding of CSS.

I have tried also an other solution that you can find here:

https://www.odoo.com/fr_FR/forum/aide-1/how-to-solve-report-header-footer-missing-while-printing-195904

But adding the line...

command_args.extend(['--javascript-delay', str(1000)])

... do not change anything neither in my case..

No change neither by creating a configuration parameter report_url (by the way, if the parameter is missing for your configuration, you will not get any CSS formating)


The right solution was for me to downgrade wkhtmltopdf to 0.12.5 and add a patch on it.


# wkhtmltopdf --version
wkhtmltopdf 0.12.5 (with patched qt)


Now everything is working fine.






1
Avatar
Zrušit
Avatar
Timo Denissen
Nejlepší odpověď

@Josef Schmid: Did you, by any chance, find a solution to this problem? We face a similar problem: quotations/orders and invoices print correctly, pro forma invoices lack the header and footer.

We're running Odoo 14 Enterprise.

1
Avatar
Zrušit
Kiran K

@Timo If the issue is only with Pro Forma Invoice, Check the paper format set for the report.

Activate Developer Mode,

Goto Settings -> Technical -> Report

Search for PRO-FORMA Invoice and check the paper format,
You can also change Report Type to HTML and check whether it's showing the header and footer

Josef Schmid
Autor

@Timo Denissen, I am still on the look, I will update you once I find something.

Timo Denissen

@Kiran Thanks :) I checked the paper format and it's correct. The header and footer is simpy just not printed. I think someone edited the core templates and after an update the changes got reverted. I check that at the moment.

Avatar
Josef Schmid
Autor Nejlepší odpověď

When removing my changes, I still get no headers and footers. My changes do not appear to be the problem

0
Avatar
Zrušit
Mya Yahmone Hlaing

Have you got solution ? I have the same issue.

Josef Schmid
Autor

@Mya Yahmone Hlaing unfortunately not, im still searching. In case you find something, let me know!

Avatar
Kiran K
Nejlepší odpověď

 Hi  ​Josef,

Activate Developer Mode

Goto Settings -> Technical -> Parameters -> System Parameters

Check whether report.url is set in system parameters.

Refer,
https://www.youtube.com/watch?v=lC9p_QJUW1Q

0
Avatar
Zrušit
Josef Schmid
Autor

This was a great tip, as my report.url was still set to localhost. This also gave me the idea that the problem might have the same origin as an other problem I'm facing where, when i send an email with images, the images do not get displayed! I did set web.base.url tho...
Do you think these two might correlate? And how could i solve this?

Kiran K

It will not affect web.base.url,

Create a new parameter with,

key: report.url

value: your_ip:port

Josef Schmid
Autor

@Kiran K, thanks for the answer! I tried to set the report.url to to my IP:Port and to my domain, neither of it worked out, unfortunately. Do you have another Idea?

Kiran K

Try changing the Report Type to HTML and check whether it's showing the header and footer.

Hope the value given for report.url and web.base.url are the same

Josef Schmid
Autor

@Kiran K. Okay, I tried using HTML Report. There, the headers show up. Now, how can i get the same to work with PDF?

Enjoying the discussion? Don't just read, join in!

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Odoo Down payment show the individual products instead of just down payment
invoice reporting v15
Avatar
Avatar
1
bře 25
2986
ODOO 15 for "Einnahmenüberschussrechnung EÜR"
reporting v15
Avatar
Avatar
Avatar
2
srp 25
3968
report layout generates error on pdf export but works in preview
reporting v15
Avatar
Avatar
1
dub 25
5423
Reports: table headers repeating PO vs SO Vyřešeno
reporting v15
Avatar
Avatar
2
čvc 24
7007
Insert image into a report Vyřešeno
reporting v15
Avatar
Avatar
1
dub 24
2773
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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