Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2699 มุมมอง

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?

อวตาร
ละทิ้ง

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 

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

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? 

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?

คำตอบที่ดีที่สุด

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. 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 25
1285
2
ก.ค. 25
1325
Print Button in New Model แก้ไขแล้ว
3
พ.ค. 25
700
1
มี.ค. 24
1552
0
ก.พ. 23
2293