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

Hello, I am trying to find a way to change the Arabic font in reports. Changing the font from document layout changes only English font, but Arabic do not change. And the default font is not good at all. Any ideas?

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

Using V.15 Ent on prem

Tác giả

I am using it, but it changes web fonts only, not reports. Thanks for help.

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

You have to develop your module to add your fonts, since you are using Nati arabic font you can extended it by adding your fonts to document layout font selection field by inheriting the res.company as below:

from odoo import fields, models

class Company(models.Model):

_inherit = 'res.company'

font = fields.Selection(selection_add=[('almarai', 'almarai'),('Cairo','Cairo')])

Then you can select font from document layout but the font will be applied for Arabic and English. Also the fonts need to be installed in machine where Odoo is installed.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 23
4265