Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Odoo 18 Quotation Builder Header/Footer Print Problem

Avatar
odoo
8 Comments
Avatar
Discard
Avatar
odoo
-

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? 

Avatar
odoo
-

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.

Avatar
odoo
-

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


Avatar
odoo
-

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

Avatar
odoo
-

Same

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

Avatar
odoo
-

@Shane: you're my personal hero. I've spent a whole night installing wkhtmltopdf back and forth in different versions but my pdfs were messed up. It were indeed the f..ing paper margins. Arrrgh! :)

Avatar
odoo
-

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
odoo
-

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?

1 Answer
0
Avatar
odoo
Best Answer

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
Discard