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

 I have a problem  with qweb report when I print a lot of page I miss header and footer ,

but when I print three or four page all of things ok I make sure my code that's ok and I work on wkhtmltopdf 0.12.0 but some people told me I must to remove or change the value of the web.base.url in system parameter

when I removed it I get the css and footer but header is missing 

and when I change the value of it to http://0.0.0.0:8069 or http://127.0.0.1:8069 or http://myIP​:port

I have the same problem when I print a lot of page 

Please help me how can I solve this problem .

Thank you so much.


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

The report module will first look for the report.url parameter and only use web.base.url as a fallback. Leave web.base.url as is and set report.url to http://0.0.0.0:8069.

อวตาร
ละทิ้ง

Works for me..+1 for your contribution..

odoo webkit report host url

Works for mee too! Thank you very much! :)

Worked like magic!

I got the same problem with Odoo 14. Adding "report.url" with "http://0.0.0.0:8069" parameter worked. Thank you

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

I have the same problem here, when web.base.url is changed to the external ip for production use, the header, footer and the entire design of the qweb report gets broken. Any way to have the web.base.url running on the external ip or address and still get the good design in qweb reports?

อวตาร
ละทิ้ง

You can freeze your web.base.url with a new parameter web.base.url.freeze which you set to True. This will prevent the web.base.url from ever moving.

Related Posts ตอบกลับ มุมมอง กิจกรรม
How to break from for loop in qweb? แก้ไขแล้ว
5
ธ.ค. 23
21486
1
เม.ย. 25
3053
4
พ.ค. 23
9553
3
ธ.ค. 22
10777
How to get current url from bowser? แก้ไขแล้ว
5
เม.ย. 24
40953