Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
25846 Lượt xem

Where can i customize the PDF reports fonts size?

 BR

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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)

Ảnh đại diện
Huỷ bỏ
Tác giả

Good solution for those who have odoo studio!

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 24
2148
0
thg 1 17
3232
1
thg 6 24
2329
1
thg 2 24
4737
5
thg 4 20
9352