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

I'm trying to customize the external layout xml for document reports (especially Sales Order/Invoice).

The report rendering in Studio (html) works fine but the rendering doesn't work for PDF documents.

How can I enable bootstrap for PDF documents?


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

Hi,

With odoo 12, they use bootstrap 4. therefore you need to use bootstrap 4 class for your layout developments. some class on bootstrap 3, not working with version 04. because of that you have to use bootstrap 4 with odoo 12.  

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

Yoy can use bootstrap classes in pdf documents if they don't depend on Bootstrap media queries (@media). For example, class="col-4" works, while class="col-md-4" does not. If class="col-4" does not work for example, set the following parameter system report.url = "localhost:8069" being localhost:8069 the url of your server.


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 21
2441
1
พ.ค. 18
3600
2
ม.ค. 17
6742
Reports not auto-saved to attachments แก้ไขแล้ว
3
มี.ค. 15
7461
2
ต.ค. 24
2217