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

Does anyone have a tip on how I can change the font size in Odoo18?
the bills are in far too big a font, it's all crazy.

Ảnh đại diện
Huỷ bỏ

You can use the style attribute to reduce the font size of text in a report.
For example:
<span style="font-size:12px;" class="fw-bold">Bill number: </span>
Thanks

Câu trả lời hay nhất

Hi, 


I am having the same issue and im a new Odoo user so I need help to find where I can change this as some of our quotations and invoices are going over 5+ pages. 


I have found where to customise the invoices and edit the template but i dont find anything for the font size itself. 


Thank you 

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

Hey Karl-Heinz,

as i suppose you are using the template DIN5008 Format... (please correct me if i am wrong). you need to change the template (in this case "l10n_din5008.external_layout_din5008") and find the proper section you want to reduce the font size... There you can use the style attribute.

Please consider, that if you update the module and you do not set the noupdate flag on this template, it will turn back to its original state... 

I recommend inheriting the view with a small custom module.

Besten Gruß

Nils

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

and how and where exactly can I set that?


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

You can use the style attribute to reduce the font size of text in a report.

For example:

<span style="font-size:12px;" class="fw-bold">Bill number: </span>

Thanks

Ảnh đại diện
Huỷ bỏ