update fonts in transaction reports and translation
This commit is contained in:
parent
f0fdb6631d
commit
1da014a746
|
|
@ -14,13 +14,13 @@
|
|||
padding: 5px 5px 5px 5px;
|
||||
}
|
||||
.header-section {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 30px;
|
||||
width: 80%;
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 30px;
|
||||
width: 80%;
|
||||
}
|
||||
.header-section td {
|
||||
border: none;
|
||||
border: none;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'DroidKufi';
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
<div class="page">
|
||||
<div class="page droidkufi-font">
|
||||
<br/>
|
||||
<h4 style="text-align:center;margin-top:120px;font-weight:bold">Receiver Transaction Report
|
||||
</h4>
|
||||
|
|
@ -53,12 +53,13 @@
|
|||
</td>
|
||||
<td style="width:60%;text-align:center">
|
||||
<t t-esc="o.transaction_date"/>
|
||||
- Corresponding -
|
||||
<t t-set="date_hijri" t-value="o.transaction_date_hijri"/>
|
||||
- Corresponding -
|
||||
<t t-set="date_hijri" t-value="o.transaction_date_hijri"/>
|
||||
|
||||
<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]"/>
|
||||
<t t-esc="date_hijri2[0]"/>/<t t-esc="date_hijri2[1]"/>/
|
||||
<t t-esc="date_hijri2[2]"/>
|
||||
</td>
|
||||
<td style="width:10%;border: 1px solid white;border-left:1px solid grey;">
|
||||
Attachments
|
||||
|
|
@ -81,13 +82,16 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td style="width:5%;border: 1px solid white;border-left:1px solid grey">Entity</td>
|
||||
<td colspan="5"><t t-esc="', '.join(map(lambda x: (x.name or x.code), o.to_ids))"/></td>
|
||||
<td colspan="5">
|
||||
<t t-esc="', '.join(map(lambda x: (x.name or x.code), o.to_ids))"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:5%;color:white;border: 1px solid white;">
|
||||
...
|
||||
</td>
|
||||
<td colspan="5" style="color:white;border: 1px solid white;border-bottom:1px solid grey">
|
||||
<td colspan="5"
|
||||
style="color:white;border: 1px solid white;border-bottom:1px solid grey">
|
||||
.....
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -95,7 +99,9 @@
|
|||
<td style="width:5%;border: 1px solid white;border-left:1px solid grey">
|
||||
Subject
|
||||
</td>
|
||||
<td colspan="5"><t t-esc="o.subject"/></td>
|
||||
<td colspan="5">
|
||||
<t t-esc="o.subject"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
|
|
@ -150,20 +156,20 @@
|
|||
</t>
|
||||
</template>
|
||||
|
||||
<!-- <record model="report.paperformat" id="paperformat_transaction_receive_report">
|
||||
<field name="name">paperformat.transaction.receive.report</field>
|
||||
<field name="default" eval="True"/>
|
||||
<field name="format">A4</field>
|
||||
<field name="orientation">Portrait</field>
|
||||
<field name="margin_top">59</field>
|
||||
<field name="margin_right">10</field>
|
||||
<field name="margin_bottom">30</field>
|
||||
<field name="margin_left">10</field>
|
||||
<field name="header_line" eval="False"/>
|
||||
<field name="header_spacing">35</field>
|
||||
<field name="dpi">90</field>
|
||||
</record> -->
|
||||
<record model="report.paperformat" id="paperformat_transaction_receive_report">
|
||||
<!-- <record model="report.paperformat" id="paperformat_transaction_receive_report">
|
||||
<field name="name">paperformat.transaction.receive.report</field>
|
||||
<field name="default" eval="True"/>
|
||||
<field name="format">A4</field>
|
||||
<field name="orientation">Portrait</field>
|
||||
<field name="margin_top">59</field>
|
||||
<field name="margin_right">10</field>
|
||||
<field name="margin_bottom">30</field>
|
||||
<field name="margin_left">10</field>
|
||||
<field name="header_line" eval="False"/>
|
||||
<field name="header_spacing">35</field>
|
||||
<field name="dpi">90</field>
|
||||
</record> -->
|
||||
<record model="report.paperformat" id="paperformat_transaction_receive_report">
|
||||
<field name="name">paperformat.transaction.receive.report</field>
|
||||
<field name="default" eval="True"/>
|
||||
<field name="format">A4</field>
|
||||
|
|
@ -204,22 +210,22 @@
|
|||
paperformat="paperformat_transaction_receive_report"
|
||||
menu="True"/>
|
||||
|
||||
<!-- Used to change the format of pdf. -->
|
||||
<record id="paperformat_card" model="report.paperformat">
|
||||
<field name="name">Custom Paper</field>
|
||||
<field name="default" eval="True"/>
|
||||
<field name="format">custom</field>
|
||||
<field name="page_height">95</field>
|
||||
<field name="page_width">60</field>
|
||||
<field name="orientation">Landscape</field>
|
||||
<field name="margin_top">5.00</field>
|
||||
<field name="margin_bottom">5.00</field>
|
||||
<field name="margin_left">5.0</field>
|
||||
<field name="margin_right">5.0</field>
|
||||
<field name="header_line" eval="False"/>
|
||||
<field name="header_spacing">35</field>
|
||||
<field name="dpi">125</field>
|
||||
</record>
|
||||
<!-- Used to change the format of pdf. -->
|
||||
<record id="paperformat_card" model="report.paperformat">
|
||||
<field name="name">Custom Paper</field>
|
||||
<field name="default" eval="True"/>
|
||||
<field name="format">custom</field>
|
||||
<field name="page_height">95</field>
|
||||
<field name="page_width">60</field>
|
||||
<field name="orientation">Landscape</field>
|
||||
<field name="margin_top">5.00</field>
|
||||
<field name="margin_bottom">5.00</field>
|
||||
<field name="margin_left">5.0</field>
|
||||
<field name="margin_right">5.0</field>
|
||||
<field name="header_line" eval="False"/>
|
||||
<field name="header_spacing">35</field>
|
||||
<field name="dpi">125</field>
|
||||
</record>
|
||||
<report
|
||||
id="action_report_internal_transaction"
|
||||
model="internal.transaction"
|
||||
|
|
@ -230,25 +236,45 @@
|
|||
paperformat="paperformat_card"
|
||||
menu="True"/>
|
||||
|
||||
<template id="report_internal_transaction">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="doc">
|
||||
<t t-call="web.basic_layout">
|
||||
<div dir="rtl" style="border: 2px solid black; padding: 20px; margin-bottom: 50px; height: 90%;">
|
||||
<h2>تفاصيل المعاملة</h2>
|
||||
<p>رقم المعاملة: <t t-esc="doc.name"/></p>
|
||||
<p>الموضوع: <t t-esc="doc.subject"/></p>
|
||||
<p>التاريخ: <t t-esc="doc.transaction_date"/></p>
|
||||
<p>
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', doc.name, 600, 100)"
|
||||
style="width:250px;height:40px;margin-top:5px;"/>
|
||||
</p>
|
||||
<!-- Add more details as needed -->
|
||||
</div>
|
||||
<template id="report_internal_transaction">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="doc">
|
||||
<t t-call="web.basic_layout">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="droidkufi-font" dir="rtl"
|
||||
style="border: 2px solid black; padding: 20px; margin-bottom: 50px; height: 90%;">
|
||||
<h2>تفاصيل المعاملة</h2>
|
||||
<p>رقم المعاملة:
|
||||
<t t-esc="doc.name"/>
|
||||
</p>
|
||||
<p>الموضوع:
|
||||
<t t-esc="doc.subject"/>
|
||||
</p>
|
||||
<p>التاريخ:
|
||||
<t t-esc="doc.transaction_date"/>
|
||||
</p>
|
||||
<p>
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', doc.name, 600, 100)"
|
||||
style="width:250px;height:40px;margin-top:5px;"/>
|
||||
</p>
|
||||
<!-- Add more details as needed -->
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
</template>
|
||||
<report
|
||||
id="action_report_out_transaction"
|
||||
model="outgoing.transaction"
|
||||
|
|
@ -259,26 +285,46 @@
|
|||
paperformat="paperformat_card"
|
||||
menu="True"/>
|
||||
|
||||
<template id="report_out_transaction">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="doc">
|
||||
<t t-call="web.basic_layout">
|
||||
<div dir="rtl" style="border: 2px solid black; padding: 20px; margin-bottom: 50px; height: 90%;">
|
||||
<h2>تفاصيل المعاملة</h2>
|
||||
<p>رقم المعاملة: <t t-esc="doc.name"/></p>
|
||||
<p>الموضوع: <t t-esc="doc.subject"/></p>
|
||||
<p>التاريخ: <t t-esc="doc.transaction_date"/></p>
|
||||
<p>
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', doc.name, 600, 100)"
|
||||
style="width:250px;height:40px;margin-top:5px;"/>
|
||||
</p>
|
||||
<!-- Add more details as needed -->
|
||||
</div>
|
||||
<template id="report_out_transaction">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="doc">
|
||||
<t t-call="web.basic_layout">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="droidkufi-font" dir="rtl"
|
||||
style="border: 2px solid black; padding: 20px; margin-bottom: 50px; height: 90%;">
|
||||
<h2>تفاصيل المعاملة</h2>
|
||||
<p>رقم المعاملة:
|
||||
<t t-esc="doc.name"/>
|
||||
</p>
|
||||
<p>الموضوع:
|
||||
<t t-esc="doc.subject"/>
|
||||
</p>
|
||||
<p>التاريخ:
|
||||
<t t-esc="doc.transaction_date"/>
|
||||
</p>
|
||||
<p>
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', doc.name, 600, 100)"
|
||||
style="width:250px;height:40px;margin-top:5px;"/>
|
||||
</p>
|
||||
<!-- Add more details as needed -->
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
<report
|
||||
</template>
|
||||
<report
|
||||
id="action_report_income_transaction"
|
||||
model="incoming.transaction"
|
||||
string="Print Transaction"
|
||||
|
|
@ -288,27 +334,45 @@
|
|||
paperformat="paperformat_card"
|
||||
menu="True"/>
|
||||
|
||||
<template id="report_income_transaction">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="doc">
|
||||
<t t-call="web.basic_layout">
|
||||
<div dir="rtl" style="border: 2px solid black; padding: 20px; margin-bottom: 50px; height: 90%;">
|
||||
<h2>تفاصيل المعاملة</h2>
|
||||
<p>رقم المعاملة: <t t-esc="doc.name"/></p>
|
||||
<p>الموضوع: <t t-esc="doc.subject"/></p>
|
||||
<p>التاريخ: <t t-esc="doc.transaction_date"/></p>
|
||||
<p>
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', doc.name, 600, 100)"
|
||||
style="width:250px;height:40px;margin-top:5px;"/>
|
||||
</p>
|
||||
<!-- Add more details as needed -->
|
||||
</div>
|
||||
<template id="report_income_transaction">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="doc">
|
||||
<t t-call="web.basic_layout">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="droidkufi-font" dir="rtl"
|
||||
style="border: 2px solid black; padding: 20px; margin-bottom: 50px; height: 90%;">
|
||||
<h2>تفاصيل المعاملة</h2>
|
||||
<p>رقم المعاملة:
|
||||
<t t-esc="doc.name"/>
|
||||
</p>
|
||||
<p>الموضوع:
|
||||
<t t-esc="doc.subject"/>
|
||||
</p>
|
||||
<p>التاريخ:
|
||||
<t t-esc="doc.transaction_date"/>
|
||||
</p>
|
||||
<p>
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', doc.name, 600, 100)"
|
||||
style="width:250px;height:40px;margin-top:5px;"/>
|
||||
</p>
|
||||
<!-- Add more details as needed -->
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
|
||||
</template>
|
||||
|
||||
|
||||
<!-- end -->
|
||||
|
|
|
|||
|
|
@ -199,6 +199,11 @@ msgstr ""
|
|||
msgid "Print letters"
|
||||
msgstr "طباعة الخطاب"
|
||||
|
||||
#. module: exp_transation_letters
|
||||
#: model:ir.actions.report,name:exp_transation_letters.report_letter_formal_action_report
|
||||
msgid "Print Formal letters"
|
||||
msgstr "طباعة الخطاب على ورق رسمي"
|
||||
|
||||
#. module: exp_transation_letters
|
||||
#: model:ir.model.fields,field_description:exp_transation_letters.field_letters_letters__signature
|
||||
msgid "Signature image"
|
||||
|
|
|
|||
Loading…
Reference in New Issue