Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Printed Offers and Reports are missing the headers and footers

Subscribe

Get notified when there's activity on this post

This question has been flagged
invoicereportingv15
4 Replies
8498 Views
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
Discard
Avatar
Bernard Wilmus
Best Answer

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
Discard
Avatar
Timo Denissen
Best Answer

@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
Discard
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
Author

@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
Author Best Answer

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

0
Avatar
Discard
Mya Yahmone Hlaing

Have you got solution ? I have the same issue.

Josef Schmid
Author

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

Avatar
Kiran K
Best Answer

 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
Discard
Josef Schmid
Author

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
Author

@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
Author

@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!

Sign up
Related Posts Replies Views Activity
Odoo Down payment show the individual products instead of just down payment
invoice reporting v15
Avatar
Avatar
1
Mar 25
2959
ODOO 15 for "Einnahmenüberschussrechnung EÜR"
reporting v15
Avatar
Avatar
Avatar
2
Aug 25
3931
report layout generates error on pdf export but works in preview
reporting v15
Avatar
Avatar
1
Apr 25
5375
Reports: table headers repeating PO vs SO Solved
reporting v15
Avatar
Avatar
2
Jul 24
6962
Insert image into a report Solved
reporting v15
Avatar
Avatar
1
Apr 24
2715
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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