I want to add Times new Arabic or Arial(Body (CS)) to my Invoice Qweb view for all the arabic words
here are some code:
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to add Times new Arabic or Arial(Body (CS)) to my Invoice Qweb view for all the arabic words
here are some code:
To use the Times New Arabic or Arial (Body CS) font in the report, you first need to add it to the font-family in your system or configuration. Once it is added, you can reference it in the report template like this:
<div class="row" style="width:99%;margin-left:4px;margin-top:50px">
<style>
.arabic-text {
font-family: 'Times New Arabic', sans-serif;
}
</style>
<table style="width:100%;border:1px solid black;min-height:1vh !important;text-align:right;height:40px;">
<tr>
<td style="width:16.6%">
<t t-esc="o.partner_id.vat" />
</td>
<td style="width:16.8%;background-color:#D3D3D3;" class="arabic-text">الضريبي العميل</td>
<td style="width:50%">
<t t-esc=" o.partner_id.name " />
</td>
<td style="width:16.6%;background-color:#D3D3D3;" class="arabic-text">إسم العميل</td>
</tr>
</table>
</div>
Hi,
Please add 'font-family' to the styling for the required line.
font-family: 'Times New Arabic', serif;
<div class="row" style="width:99%;margin-left:4px;margin-top:50px">
<div>
<table style="width:100%;border:1px solid black;min-height:1vh !important;text-align:right;height:40px;">
<tr>
<td style="width:16.6%"><t t-esc="o.partner_id.vat" /></td>
<td style="width:16.8%;background-color:#D3D3D3; font-family: 'Times New Arabic',
serif;">العميل الضريبي</td>
<td style="width:50%"><t t-esc="o.partner_id.name" /></td>
<td style="width:16.6%;background-color:#D3D3D3; font-family: 'Times New Arabic',
serif;">اسم العميل</td>
</tr>
</table>
<table style="width:100%;border:1px solid black;min-height:1vh !important;text-align:right;height:40px;margin-top:3px">
<tr>
<td style="width:16.6%"><t t-esc="o.invoice_user_id.name" /></td>
<td style="width:16.6%;background-color:#D3D3D3; font-family: 'Times New Arabic',
serif;">المندوب</td>
<td style="width:18.6%"><t t-esc="o.partner_id.phone" /></td>
<td style="width:14.6%;background-color:#D3D3D3; font-family: 'Times New Arabic',
serif;">هاتف</td>
<td style="width:16.6%" />
<td style="width:16.6%;background-color:#D3D3D3; font-family: 'Times New Arabic',
serif;">رقم العميل</td>
</tr>
</table>
</div>
</div>
Hope it helps,
Thank you for your answer
But its not working
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
2
feb. 25
|
1764 | ||
|
0
mei 24
|
1064 | ||
|
0
sep. 18
|
4219 | ||
|
0
dec. 24
|
1241 | ||
|
0
aug. 24
|
1637 |