update fonts in transaction reports
This commit is contained in:
parent
629a67197d
commit
6d8ec60307
|
|
@ -2,66 +2,91 @@
|
|||
<odoo>
|
||||
<data>
|
||||
<template id="custom_external_layout_standard_barcode">
|
||||
<div class="header">
|
||||
<div class="row">
|
||||
<br/>
|
||||
<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">
|
||||
<td style="font-weight: bold;border:0px;padding-right:30px !important;">Number:
|
||||
<t t-esc="o.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>
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/cm_odex_barcode/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
<t t-set="date_hijri" t-value="o.transaction_date_hijri"/>
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
<div class="header droidkufi-font">
|
||||
<div class="row">
|
||||
<br/>
|
||||
<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">
|
||||
<td style="font-weight: bold;border:0px;padding-right:30px !important;">Number:
|
||||
<t t-esc="o.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>
|
||||
|
||||
<t t-set="date_hijri2" t-value="date_hijri.split('-')"/>
|
||||
<t t-set="date_hijri" t-value="o.transaction_date_hijri"/>
|
||||
|
||||
<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.transaction_date" t-field-options='{"format": "yyyy/MM/dd"}'/>
|
||||
</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.attachment_num"/>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="border:0px">
|
||||
<td colspan="2" style="border:0px">
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.name, 600, 100)"
|
||||
style="width:250px;height:40px;margin-top:5px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<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>
|
||||
<tr>
|
||||
<td colspan="2" style="border:0px;padding-right:30px !important;">
|
||||
<span style="font-weight:bold;">Reference:</span>
|
||||
<span t-field="o.transaction_date" t-field-options='{"format": "yyyy/MM/dd"}'/>
|
||||
</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.attachment_num"/>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="border:0px">
|
||||
<td colspan="2" style="border:0px">
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.name, 600, 100)"
|
||||
style="width:250px;height:40px;margin-top:5px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="article o_report_layout_standard">
|
||||
</div>
|
||||
<div class="article o_report_layout_standard droidkufi-font">
|
||||
<t t-raw="0"/>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<!-- <div class="text-center">-->
|
||||
<!-- <div class="text-muted">-->
|
||||
<!-- Page: <span class="page"/> / <span class="topage"/>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="text-center">-->
|
||||
<!-- <div class="text-muted">-->
|
||||
<!-- Page: <span class="page"/> / <span class="topage"/>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template id="barcode_external_layout">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/cm_odex_barcode/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- Multicompany -->
|
||||
<t t-if="not o and doc">
|
||||
<t t-set="o" t-value="doc"/>
|
||||
|
|
@ -73,71 +98,73 @@
|
|||
<t t-if="not o or not 'company_id' in o">
|
||||
<t t-set="company" t-value="res_company"/>
|
||||
</t>
|
||||
<div class="header">
|
||||
<div class="row">
|
||||
<br/>
|
||||
<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">
|
||||
<td style="font-weight: bold;border:0px;padding-right:30px !important;">Number:
|
||||
<t t-esc="o.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>
|
||||
<div class="header droidkufi-font">
|
||||
<div class="row">
|
||||
<br/>
|
||||
<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">
|
||||
<td style="font-weight: bold;border:0px;padding-right:30px !important;">Number:
|
||||
<t t-esc="o.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>
|
||||
|
||||
<t t-set="date_hijri" t-value="o.transaction_date_hijri"/>
|
||||
<t t-set="date_hijri" t-value="o.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>
|
||||
<tr>
|
||||
<td colspan="2" style="border:0px;padding-right:30px !important;">
|
||||
<span style="font-weight:bold;">Reference:</span>
|
||||
<span t-field="o.transaction_date" t-field-options='{"format": "yyyy/MM/dd"}'/>
|
||||
</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.attachment_num"/>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="border:0px">
|
||||
<td colspan="2" style="border:0px">
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.name, 600, 100)"
|
||||
style="width:250px;height:40px;margin-top:5px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<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.transaction_date" t-field-options='{"format": "yyyy/MM/dd"}'/>
|
||||
</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.attachment_num"/>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="border:0px">
|
||||
<td colspan="2" style="border:0px">
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.name, 600, 100)"
|
||||
style="width:250px;height:40px;margin-top:5px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<br></br>
|
||||
<!-- <t t-if="company.external_report_layout == 'background'">-->
|
||||
<!-- <t t-call="cm_odex_barcode.custom_external_layout_standard_barcode"><t t-raw="0"/></t>-->
|
||||
<!-- </t>-->
|
||||
<!-- <t t-if="company.external_report_layout == 'boxed'">-->
|
||||
<!-- <t t-call="cm_odex_barcode.custom_external_layout_standard_barcode"><t t-raw="0"/></t>-->
|
||||
<!-- </t>-->
|
||||
<!-- <t t-if="company.external_report_layout == 'clean'">-->
|
||||
<!-- <t t-call="cm_odex_barcode.custom_external_layout_standard_barcode"><t t-raw="0"/></t>-->
|
||||
<!-- </t>-->
|
||||
<!-- <t t-if="company.external_report_layout in (False, 'standard')">-->
|
||||
<!-- <t t-call="cm_odex_barcode.custom_external_layout_standard_barcode"><t t-raw="0"/></t>-->
|
||||
<!-- </t>-->
|
||||
|
||||
</template>
|
||||
<!-- Translatable template -->
|
||||
<template id="report_transaction_barcode">
|
||||
<t t-call="cm_odex_barcode.barcode_external_layout">
|
||||
<div class="page">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/cm_odex_barcode/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="page droidkufi-font">
|
||||
<div class="row text-center" style="direction: rtl;">
|
||||
<table style="margin-right:70%;">
|
||||
<tr>
|
||||
|
|
@ -149,17 +176,20 @@
|
|||
</table>
|
||||
<table style="margin-right:70%;">
|
||||
<tr>
|
||||
<td><span style="font-weight:bold">Date:</span>
|
||||
<td>
|
||||
<span style="font-weight:bold">Date:</span>
|
||||
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span style="font-weight:bold">Reference:</span>
|
||||
<td>
|
||||
<span style="font-weight:bold">Reference:</span>
|
||||
<span t-field="o.transaction_date" t-field-options='{"format": "yyyy/MM/dd"}'/>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -2659,10 +2659,7 @@ msgstr "المعاملات الداخلية المردوده"
|
|||
msgid "Remove from Favorite"
|
||||
msgstr "الحذف من قائمة المفضلة"
|
||||
|
||||
#. module: exp_transaction_documents
|
||||
#: model:ir.model,name:exp_transaction_documents.model_res_partner
|
||||
msgid "Renter"
|
||||
msgstr ""
|
||||
|
||||
|
||||
#. module: exp_transaction_documents
|
||||
#: model_terms:ir.ui.view,arch_db:exp_transaction_documents.common_outgoing_external_transaction_form
|
||||
|
|
|
|||
|
|
@ -2,51 +2,67 @@
|
|||
<data>
|
||||
<!-- Translatable template -->
|
||||
<template id="report_transaction_barcode_document">
|
||||
<t t-call="exp_transaction_documents.custom_external_layout">
|
||||
<div class="page">
|
||||
<div class="row text-center" style="direction: rtl;">
|
||||
<table style="margin-right:70%;">
|
||||
<tr>
|
||||
<td style="font-weight: bold;">Number:</td>
|
||||
<td style="direction: ltr !important;">
|
||||
<t t-esc="o.name"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table style="margin-right:70%;">
|
||||
<tr>
|
||||
<td><span style="font-weight:bold">Date:</span>
|
||||
<t t-call="exp_transaction_documents.custom_external_layout">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/exp_transaction_documents/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
<t t-set="date_hijri" t-value="o.transaction_date_hijri"/>
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
|
||||
<t t-set="date_hijri2" t-value="date_hijri.split('-')"/>
|
||||
<div class="page droidkufi-font">
|
||||
<div class="row text-center" style="direction: rtl;">
|
||||
<table style="margin-right:70%;">
|
||||
<tr>
|
||||
<td style="font-weight: bold;">Number:</td>
|
||||
<td style="direction: ltr !important;">
|
||||
<t t-esc="o.name"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table style="margin-right:70%;">
|
||||
<tr>
|
||||
<td>
|
||||
<span style="font-weight:bold">Date:</span>
|
||||
|
||||
<t t-esc="date_hijri2[0]"/>/<t t-esc="date_hijri2[1]"/>/<t t-esc="date_hijri2[2]"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span style="font-weight:bold">Reference:</span>
|
||||
<span t-field="o.transaction_date" t-field-options='{"format": "yyyy/MM/dd"}'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span style="font-weight:bold">Attachment:</span>
|
||||
<span style="direction: ltr !important;">
|
||||
<t t-esc="o.attachment_num"/>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.name, 600, 100)"
|
||||
style="width:250px;height:40px;margin-top:5px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
<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]"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span style="font-weight:bold">Reference:</span>
|
||||
<span t-field="o.transaction_date" t-field-options='{"format": "yyyy/MM/dd"}'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span style="font-weight:bold">Attachment:</span>
|
||||
<span style="direction: ltr !important;">
|
||||
<t t-esc="o.attachment_num"/>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.name, 600, 100)"
|
||||
style="width:250px;height:40px;margin-top:5px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
<!-- Base Template -->
|
||||
<template id="report_internal_transaction_barcode">
|
||||
|
|
|
|||
|
|
@ -22,8 +22,18 @@
|
|||
.header-section td {
|
||||
border: none;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/exp_transaction_documents/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.droidkufi-font {
|
||||
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>
|
||||
|
|
|
|||
|
|
@ -47,12 +47,14 @@
|
|||
<t t-call="exp_transaction_documents.custom_external_layout_standard_tran">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'ae_AlMohanad';
|
||||
src: local('ae_AlMohanad'), local('ae_AlMohanad'),
|
||||
url('/exp_transaction_documents/static/fonts/ae_AlMohanad.ttf') format('truetype');
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/exp_transaction_documents/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
*{
|
||||
font-family: ae_AlMohanad;
|
||||
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
table {
|
||||
border: 1px solid black;
|
||||
|
|
@ -69,7 +71,7 @@
|
|||
background-color:#d3d3d3;
|
||||
}
|
||||
</style>
|
||||
<div class="page">
|
||||
<div class="page droidkufi-font">
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -174,7 +174,7 @@
|
|||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
if records:
|
||||
action = records.action_read()
|
||||
action = records.action_read()
|
||||
</field>
|
||||
</record>
|
||||
<record id="action_unread_out_transaction_from" model="ir.actions.server">
|
||||
|
|
|
|||
|
|
@ -45,17 +45,19 @@
|
|||
<template id="achievement_tran_report_temp">
|
||||
<t t-call="web.html_container">
|
||||
<t t-call="exp_transaction_report.custom_external_layout_all">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'ae_AlMohanad';
|
||||
src: local('ae_AlMohanad'), local('ae_AlMohanad'),
|
||||
url('/exp_transaction_report/static/fonts/ae_AlMohanad.ttf') format('truetype');
|
||||
}
|
||||
*{
|
||||
font-family: ae_AlMohanad;
|
||||
}
|
||||
</style>
|
||||
<div class="page">
|
||||
<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="page droidkufi-font">
|
||||
<h4 style="text-align:center;font-weight:bold">Achievement Report</h4>
|
||||
<br/>
|
||||
<div style="width:100%;text-align:center">
|
||||
|
|
|
|||
|
|
@ -6,15 +6,18 @@
|
|||
<t t-call="exp_transaction_report.custom_external_layout_all">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'ae_AlMohanad';
|
||||
src: local('ae_AlMohanad'), local('ae_AlMohanad'),
|
||||
url('/exp_transaction_report/static/fonts/ae_AlMohanad.ttf') format('truetype');
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
*{
|
||||
font-family: ae_AlMohanad;
|
||||
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
<div class="page" style="font-size:11pt">
|
||||
|
||||
<div class="page droidkufi-font" style="font-size:11pt">
|
||||
<h4 style="text-align:center;font-weight:bold">Closed Transaction Report</h4>
|
||||
<br/>
|
||||
<div style="width:100%;text-align:center">
|
||||
|
|
|
|||
|
|
@ -4,17 +4,20 @@
|
|||
<template id="template_forw_transaction_report">
|
||||
<t t-call="web.html_container">
|
||||
<t t-call="exp_transaction_report.custom_external_layout_all">
|
||||
<style type="text/css">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'ae_AlMohanad';
|
||||
src: local('ae_AlMohanad'), local('ae_AlMohanad'),
|
||||
url('/exp_transaction_report/static/fonts/ae_AlMohanad.ttf') format('truetype');
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
*{
|
||||
font-family: ae_AlMohanad;
|
||||
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
<div class="page" style="font-size:11pt">
|
||||
|
||||
<div class="page droidkufi-font" style="font-size:11pt">
|
||||
<h4 style="text-align:center;font-weight:bold">Forward Transaction Report</h4>
|
||||
<br/>
|
||||
<div style="width:100%;text-align:center">
|
||||
|
|
|
|||
|
|
@ -6,15 +6,18 @@
|
|||
<t t-call="exp_transaction_report.custom_external_layout_all">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'ae_AlMohanad';
|
||||
src: local('ae_AlMohanad'), local('ae_AlMohanad'),
|
||||
url('/exp_transaction_report/static/fonts/ae_AlMohanad.ttf') format('truetype');
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
*{
|
||||
font-family: ae_AlMohanad;
|
||||
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
<div class="page" style="font-size:11pt">
|
||||
|
||||
<div class="page droidkufi-font" style="font-size:11pt">
|
||||
<h4 style="text-align:center;font-weight:bold">Incoming Transaction Report</h4>
|
||||
<br/>
|
||||
<div style="width:100%;text-align:center">
|
||||
|
|
|
|||
|
|
@ -6,15 +6,17 @@
|
|||
<t t-call="exp_transaction_report.custom_external_layout_all">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'ae_AlMohanad';
|
||||
src: local('ae_AlMohanad'), local('ae_AlMohanad'),
|
||||
url('/exp_transaction_report/static/fonts/ae_AlMohanad.ttf') format('truetype');
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
*{
|
||||
font-family: ae_AlMohanad;
|
||||
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
<div class="page" style="font-size:11pt">
|
||||
<div class="page droidkufi-font" style="font-size:11pt">
|
||||
<h4 style="text-align:center;font-weight:bold">Late Transaction Report</h4>
|
||||
<br/>
|
||||
<div style="width:100%;">
|
||||
|
|
|
|||
|
|
@ -4,17 +4,19 @@
|
|||
<template id="template_out_transaction_report">
|
||||
<t t-call="web.html_container">
|
||||
<t t-call="exp_transaction_report.custom_external_layout_all">
|
||||
<style type="text/css">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'ae_AlMohanad';
|
||||
src: local('ae_AlMohanad'), local('ae_AlMohanad'),
|
||||
url('/exp_transaction_report/static/fonts/ae_AlMohanad.ttf') format('truetype');
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
*{
|
||||
font-family: ae_AlMohanad;
|
||||
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
<div class="page" style="font-size:11pt">
|
||||
<div class="page droidkufi-font" style="font-size:11pt">
|
||||
<h4 style="text-align:center;font-weight:bold">Outgoing Transaction Report</h4>
|
||||
<br/>
|
||||
<div style="width:100%;text-align:center">
|
||||
|
|
|
|||
|
|
@ -6,15 +6,17 @@
|
|||
<t t-call="exp_transaction_report.custom_external_layout_all">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'ae_AlMohanad';
|
||||
src: local('ae_AlMohanad'), local('ae_AlMohanad'),
|
||||
url('/exp_transaction_report/static/fonts/ae_AlMohanad.ttf') format('truetype');
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
*{
|
||||
font-family: ae_AlMohanad;
|
||||
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
<div class="page" style="font-size:11pt">
|
||||
<div class="page droidkufi-font" style="font-size:11pt">
|
||||
<h4 style="text-align:center;font-weight:bold">Report outstanding Transaction</h4>
|
||||
<br/>
|
||||
<h4 style="text-align:center;font-weight:bold">
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -23,6 +23,7 @@ Letters Managment
|
|||
'security/ir.model.access.csv',
|
||||
'views/letters_view.xml',
|
||||
'reports/letter_template.xml',
|
||||
'reports/formal_letter.xml',
|
||||
],
|
||||
'qweb' : [
|
||||
],
|
||||
|
|
|
|||
|
|
@ -0,0 +1,326 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<template id="custom_external_formal_layout_standard">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/exp_transation_letters/static/src/fonts/DroidKufi-Regular.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
<t t-if="o.incoming_transaction_id">
|
||||
<div class="header droidkufi-font">
|
||||
<div class="row">
|
||||
<br/>
|
||||
<div class="col-6 text-right">
|
||||
<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">
|
||||
<td style="font-weight: bold;border:0px;padding-right:30px !important;">Number:
|
||||
<t t-esc="o.incoming_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>
|
||||
|
||||
<t t-set="date_hijri"
|
||||
t-value="o.incoming_transaction_id.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]"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="border:0px;padding-right:30px !important;">
|
||||
<span style="font-weight:bold;">Reference:</span>
|
||||
<span t-field="o.incoming_transaction_id.transaction_date"
|
||||
t-field-options='{"format": "yyyy/MM/dd"}'/>
|
||||
</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.incoming_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&value=%s&width=%`s&height=%s' % ('Code128', o.incoming_transaction_id.name, 600, 100)"
|
||||
style="width:250px;height:40px;margin-top:5px;"/>
|
||||
</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>
|
||||
<t t-if="o.internal_transaction_id">
|
||||
<div class="header droidkufi-font">
|
||||
<div class="row">
|
||||
<br/>
|
||||
<div class="col-6 text-right">
|
||||
<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">
|
||||
<td style="font-weight: bold;border:0px;padding-right:30px !important;">Number:
|
||||
<t t-esc="o.internal_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>
|
||||
|
||||
<t t-set="date_hijri"
|
||||
t-value="o.internal_transaction_id.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]"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="border:0px;padding-right:30px !important;">
|
||||
<span style="font-weight:bold;">Reference:</span>
|
||||
<span t-field="o.internal_transaction_id.transaction_date"
|
||||
t-field-options='{"format": "yyyy/MM/dd"}'/>
|
||||
</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.internal_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&value=%s&width=%s&height=%s' % ('Code128', o.internal_transaction_id.name, 600, 100)"
|
||||
style="width:250px;height:40px;margin-top:5px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-6 text-left">
|
||||
<table align="left">
|
||||
<tr style="border:0px">
|
||||
<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;"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
<t t-if="o.outgoing_transaction_id">
|
||||
<div class="header droidkufi-font">
|
||||
<div class="row">
|
||||
<br/>
|
||||
<div class="col-6 text-right">
|
||||
<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">
|
||||
<td style="font-weight: bold;border:0px;padding-right:30px !important;">Number:
|
||||
<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>
|
||||
|
||||
<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-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"}'/>
|
||||
</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&value=%s&width=%s&height=%s' % ('Code128', o.outgoing_transaction_id.name, 600, 100)"
|
||||
style="width:250px;height:40px;margin-top:5px;"/>
|
||||
</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>
|
||||
|
||||
<t t-if="o.outgoing_transaction_id =='' and o.internal_transaction_id=='' and o.incoming_transaction_id ==''">
|
||||
<div class="header droidkufi-font">
|
||||
<div class="row">
|
||||
<div class="col-6 text-right">
|
||||
|
||||
</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>
|
||||
|
||||
<div class="article o_report_layout_standard droidkufi-font">
|
||||
<t t-raw="0"/>
|
||||
</div>
|
||||
<div class="footer droidkufi-font">
|
||||
<div class="text-center">
|
||||
<div class="text-muted">
|
||||
Page:
|
||||
<span class="page"/>
|
||||
/
|
||||
<span class="topage"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template id="formal_letter_external_layout">
|
||||
<!-- Multicompany -->
|
||||
<t t-if="not o and doc">
|
||||
<t t-set="o" t-value="doc"/>
|
||||
</t>
|
||||
|
||||
<t t-if="o and 'company_id' in o">
|
||||
<t t-set="company" t-value="o.company_id.sudo()"/>
|
||||
</t>
|
||||
<t t-if="not o or not 'company_id' in o">
|
||||
<t t-set="company" t-value="res_company"/>
|
||||
</t>
|
||||
<t t-call="exp_transation_letters.custom_external_formal_layout_standard">
|
||||
<t t-raw="0"/>
|
||||
</t>
|
||||
|
||||
</template>
|
||||
<template id="transaction_letter_formal_report_temp">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-call="exp_transation_letters.formal_letter_external_layout">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/exp_transation_letters/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
<div class="page droidkufi-font">
|
||||
<!-- <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/>
|
||||
<div style="margin-bottom: 0px">
|
||||
<p class="droidkufi-font" style="line-height: 16 !important" t-raw="o.content">
|
||||
</p>
|
||||
</div>
|
||||
<br/>
|
||||
<br/>
|
||||
<div style="margin-top: 0px;" dir="ltr">
|
||||
<img t-if="o.signature" t-attf-src="data:image/*;base64,{{o.signature}}"
|
||||
style="margin-top:50px;height:100px;width:100px; border: 0px;margin-left:25px"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
<record model="report.paperformat" id="paperformat_formal_letters_report">
|
||||
<field name="name">paperformat.letters.formal.report</field>
|
||||
<field name="default" eval="True"/>
|
||||
<field name="format">A4</field>
|
||||
<field name="orientation">Portrait</field>
|
||||
<field name="margin_top">70</field>
|
||||
<field name="margin_right">20</field>
|
||||
<field name="margin_bottom">30</field>
|
||||
<field name="margin_left">20</field>
|
||||
<field name="header_line" eval="False"/>
|
||||
<field name="header_spacing">50</field>
|
||||
<field name="dpi">90</field>
|
||||
</record>
|
||||
<report id="report_letter_formal_action_report"
|
||||
model="letters.letters"
|
||||
string="Print Formal letters"
|
||||
report_type="qweb-pdf"
|
||||
print_report_name="'Letter %s' % (object.name)"
|
||||
name="exp_transation_letters.transaction_letter_formal_report_temp"
|
||||
paperformat="paperformat_letters_report"
|
||||
menu="True"/>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -266,7 +266,19 @@
|
|||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-call="exp_transation_letters.letter_external_layout">
|
||||
<div class="page">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'DroidKufi';
|
||||
src: url("/exp_transation_letters/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.droidkufi-font {
|
||||
font-family: 'DroidKufi', sans-serif;
|
||||
}
|
||||
</style>
|
||||
<div class="page droidkufi-font">
|
||||
<!-- <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" />-->
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue