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
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
|
2
úno 25
|
1736 | ||
|
0
kvě 24
|
1019 | ||
|
0
zář 18
|
4199 | ||
|
0
pro 24
|
1222 | ||
|
0
srp 24
|
1620 |