Ir al contenido
Menú
Se marcó esta pregunta
4 Respuestas
2357 Vistas

I am using Odoo 16 and testing Odoo 18.

I added header and footer using quote builders. However, while preparing quotation, I have to select header and footer from quote builder menu every time in quote.

If I do not select from menu, it does not add footer and header to pdf output while printing quote.

How can I solve this problem?

Avatar
Descartar

Same problem here, too. 
We add a T&C's footer to fit nicely in one page at the end of the quote. It used to work fine in v17. Since v18, not so much. Hope they fix this. 
Has anyone found a way to set the footer to be on by default yet? 

Hello,

I have the same issue, I used the quotation builder on odoo 17 it works wery well after the update, no more header and footer printed, I also selected the footer in the quotation builder tab but it still doesn't work for me.

i solve the issue it's happened with me also.
 basically you need to remove higher version of wkhtmltopdf  and install only 0.12.5


Hi,

for the moment there is a workaround.

When you're in a quotation and you're using a quotation template, click on the "quotation builder" tab, then click on the footer you need and it should be OK.

It's just a workaround, but it works for me.

regards,

JP

Same

ans the header and footer are in different size comparing the quote pdf 

Beste lezer, 


Bedankt voor uw bericht. Ik ben er even tussenuit van 2 tot en met 21 juli en kan in deze periode geen mail beantwoorden. Vanaf maandag 22 juli lees ik alles graag terug en kom ik bij u in de lucht.


Is het iets dat niet kan wachten?

Stuur dan een mailtje naar info@serenaspa.nl of bel ons op +31 (0)341 217 161 – mijn collega’s helpen u graag verder.


Met vriendelijke groet, 

Nina von Baumhauer

 

Mejor respuesta

Being as you have wkhtmltopdf installed and you can see the PDF even though its not displaying properly it requires that the web.base.url has a valid certificate for it to generate the report correctly, if for some reason this is ignored then the Headers and Footers will be deformed. 


To get them to display the way you want, activate developer mode, Technical >> System Parameters search for url, you will see only web.base.url along with your domain name unless you are using localhost:8069 then the pdf would work. But for a FQDN the report will not show the footer as wkhtmltopdf is most probably behind a proxy in which case create a new system parameter called report.url  and set the value to either http://localhost:8069 or the docker container name if using Docker. So it would be http://<container_name>:8069 or which ever port you are using.


There is no requirement to restart Odoo, just take a look at the report and see if the footer shows. 


** You may need to fix the Paper Format margins, Technical >> Reporting >> Paper Format and set up the xlms to your requirements, but I found this to work a treat as it forces wkhtmltopdf to use report url rather than the external facing one.

Hope this helps those who are having this problem. 

Avatar
Descartar
Mejor respuesta

Root Causes & Fixes

  1. WebKit/WebLayout Print Limitation:
    • Odoo's Web Quotation Builder uses HTML/CSS layout.
    • Headers/footers in web design don’t always print well to PDF due to wkhtmltopdf limitations.
    Fix:
    • Go to Settings > Technical > Reports > Report Layout.
    • Use the Standard PDF layout instead of web layout for print exports.
    • Or toggle back to the classic PDF Quotation layout.
  2. Missing or Custom CSS:
    • Custom themes or CSS might suppress header/footer styles.
    Fix:
    • Inspect the quotation template in developer tools (F12) and check @media print rules.
    • Ensure position: fixed; headers/footers are declared in the print CSS block.
  3. Quotation Template Format:
    • Web Quotation Builder is more for interactive viewing, not print.
    Best Practice:
    • Enable the PDF version by using Settings > Sales > Document Template.
    • Or assign a custom QWeb report template to quotations.

Avatar
Descartar
Mejor respuesta

I have created a new report layout but the PDFs for the header and footer from the quotation template are not picked up, does anyone know how to solve this? 

Avatar
Descartar
Mejor respuesta

Yes, we have the same problem.

We use different templates for our quotations. Before the update, everything worked fine, but now, when sending the quotation or downloading the PDF, the formatting (header and footer) is missing, and we only see the default quotation page. 

Does anyone have a solution?

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
feb 25
982
2
jul 25
1154
3
may 25
556
1
mar 24
1474
0
feb 23
2209