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

i have a fields.html and i fill them with : 

Model : CQ 3303 TMG 366

Engine : Wei Chai / Uero 2 ; Type : WD.12.375


but when i try to print them using qweb and the result is


<p>Model : CQ 3303 TMG 366</p>

<div>Engine : Wei Chai / Uero 2 ; Type : WD.12.375</div> 


in pdf..

anyone know how to solve this issue? 

thx before

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

Hello

<span t-raw="my_html_field"/>

should do the works !

อวตาร
ละทิ้ง

Hi Jeremy, I have using code by given you. but I have issue on pdf report. I would to like print this type of html field https://drive.google.com/file/d/0B763E4hoUk59OEtXakd5alBHblU/view?usp=sharing when I print the pdf reports in V8. It's wrong display in pdf you can see on this shared link. https://drive.google.com/file/d/0B763E4hoUk59ODlUWEMzTVFMTWc/view?usp=sharing

If you see the bullets, it s working... After you can customize style with css or style inline... But the rendering is ok

Accepted this answer. Thanks Jérémy :)

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

Heads-up: deprecated since Odoo V15 (https://www.odoo.com/documentation/16.0/nl/developer/reference/frontend/qweb.html#deprecated-output-directives)

อวตาร
ละทิ้ง