update fonts in transaction reports and translation

This commit is contained in:
esraa 2024-11-14 12:10:15 +02:00
parent 1da014a746
commit bdbaefce59
1 changed files with 40 additions and 36 deletions

View File

@ -121,10 +121,10 @@
<div class="col-6 text-left">
<table align="left">
<tr style="border:0px">
<td >
<td>
<img t-att-src="'/logo.png?company=%s' % (o.env.user.company_id.id or 0)"
t-att-alt="'%s' % company.name"
style="width:80px;height:80px;"/>
style="width:80px;height:80px;"/>
</td>
</tr>
</table>
@ -135,9 +135,9 @@
<t t-if="o.outgoing_transaction_id">
<div class="header">
<div class="row">
<br/>
<div class="col-6 text-right">
<div class="row" style="direction: ltr; margin-top: 0px; margin-left: -50px">
<!--<br/>-->
<div class="col-6 text-right" style="direction: rtl;">
<table align="left"
style="border:1px solid white;width:50;margin-left:60px;margin-top:0px;margin-right:5px;margin-bottom:40px;text-align: justify;">
<tr style="border:0px">
@ -145,36 +145,42 @@
<t t-esc="o.outgoing_transaction_id.name"/>
</td>
</tr>
<tr style="border:0px">
<td colspan="2" style="border:0px;padding-right:30px !important;">
<span style="font-weight:bold;font-stretch: expanded;">
Date:
</span>
<!--<tr style="border:0px">-->
<!-- <td colspan="2" style="border:0px;padding-right:30px !important;">-->
<!-- <span style="font-weight:bold;font-stretch: expanded;">-->
<!-- Date:-->
<!-- </span>-->
<t t-set="date_hijri"
t-value="o.outgoing_transaction_id.transaction_date_hijri"/>
<!-- <t t-set="date_hijri" t-value="o.outgoing_transaction_id.transaction_date_hijri"/>-->
<t t-set="date_hijri2" t-value="date_hijri.split('-')"/>
<!-- <t t-set="date_hijri2" t-value="date_hijri.split('-')"/>-->
<t t-esc="date_hijri2[0]"/>/<t t-esc="date_hijri2[1]"/>/
<t t-esc="date_hijri2[2]"/>
</td>
</tr>
<!-- <t t-esc="date_hijri2[0]"/>/<t t-esc="date_hijri2[1]"/>/-->
<!-- <t t-esc="date_hijri2[2]"/>-->
<!-- </td>-->
<!--</tr>-->
<tr>
<td colspan="2" style="border:0px;padding-right:30px !important;">
<span style="font-weight:bold;">Reference:</span>
<span t-field="o.outgoing_transaction_id.transaction_date"
t-field-options='{"format": "yyyy/MM/dd"}'/>
<span t-field="o.outgoing_transaction_id.subject"
t-field-options="{&quot;format&quot;: &quot;yyyy/MM/dd&quot;}"/>
</td>
</tr>
<tr>
<td colspan="2" style="border:0px;padding-right:30px !important;">
<span style="font-weight:bold">Attachment:</span>
<span style="direction: ltr !important;">
<t t-esc="o.outgoing_transaction_id.attachment_num"/>
</span>
<span style="font-weight:bold;"></span>
<span t-field="o.outgoing_transaction_id.transaction_date"
t-field-options="{&quot;format&quot;: &quot;yyyy/MM/dd&quot;}"/>
</td>
</tr>
<!--<tr>-->
<!-- <td colspan="2" style="border:0px;padding-right:30px !important;">-->
<!-- <span style="font-weight:bold">Attachment:</span>-->
<!-- <span style="direction: ltr !important;">-->
<!-- <t t-esc="o.outgoing_transaction_id.attachment_num"/>-->
<!-- </span>-->
<!-- </td>-->
<!--</tr>-->
<tr style="border:0px">
<td colspan="2" style="border:0px">
<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.outgoing_transaction_id.name, 600, 100)"
@ -183,17 +189,15 @@
</tr>
</table>
</div>
<div class="col-6 text-left">
<table align="left">
<tr style="border:0px">
<td colspan="2" style="border:0px">
<img t-att-src="'/logo.png?company=%s' % (o.env.user.company_id.id or 0)"
t-att-alt="'%s' % company.name"
style="width:80px;height:80px;"/>
</td>
</tr>
</table>
</div>
<!--<div class="col-6 text-left">-->
<!-- <table align="left">-->
<!-- <tr style="border:0px">-->
<!-- <td colspan="2" style="border:0px">-->
<!-- <img t-att-src="'/logo.png?company=%s' % (o.env.user.company_id.id or 0)" t-att-alt="'%s' % company.name" style="width:80px;height:80px;"/>-->
<!-- </td>-->
<!-- </tr>-->
<!-- </table>-->
<!--</div>-->
</div>
</div>
</t>
@ -282,8 +286,8 @@
<!-- <h4 style="text-align:center;margin-top:20px;font-weight:bold;font-size:20pt">Letter <t t-esc="o.name"/>-->
<!-- </h4>-->
<!-- <strong style="margin: 10px;margin-left:30px"> Date </strong>: <span t-esc="o.date" />-->
<br/>
<br/>
<!-- <br/>-->
<!-- <br/>-->
<div style="margin-bottom: 0px">
<p style="line-height: 16 !important" t-raw="o.content">
</p>