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

Where can i customize the PDF reports fonts size?

 BR

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

Hello Recardo,

you can use style tag where you want and  change font size. for example

<t-field="doc.date_order" style="font-size:12px"/>

I hope it's help you.



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

Say you are modifying the font size for a Purchase Order PDF.

  1. Open the Settings module and Activate the developer mode (bottom right)

  2. Open the module that the PDF is in. In this case, it is Purchase

  3. Activate Odoo Studio

  4. Open Reports tab (top right)

  5. Open the PDF you are trying to edit

  6. Click on Report on the sidebar on the left 

  7. Open XML and there is a page with code.

  8. There is a drop down menu where you can view multiple layers of the code

  9. Look for the report named report_purchaseorder_document

  10. Insert the code style="font-size:12px" within any of the <> sections
        <th ____________ /> 
        <span _____________/>


Bonus: 

color: red (changes color of font)

font-weight: bold (changes font to bold)

อวตาร
ละทิ้ง
ผู้เขียน

Good solution for those who have odoo studio!

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 24
1992
0
ม.ค. 17
3122
1
มิ.ย. 24
2197
1
ก.พ. 24
4564
5
เม.ย. 20
9283