Skip to Content
मेन्यू
This question has been flagged
2 Replies
1327 Views

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:

Avatar
Discard
Best Answer

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>

Avatar
Discard
Best Answer

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,



Avatar
Discard
Author

Thank you for your answer
But its not working

Related Posts Replies Views Activity
2
फ़र॰ 25
1735
0
मई 24
1017
0
सित॰ 18
4199
0
दिस॰ 24
1222
0
अग॰ 24
1617