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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
1
Balas
3868
Tampilan
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.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Jul 23
|
4052 |
Using V.15 Ent on prem
Try This module : https://apps.odoo.com/apps/modules/15.0/nati_arabic_font/
I am using it, but it changes web fonts only, not reports. Thanks for help.