update fonts in transaction reports

This commit is contained in:
esraa 2024-11-14 09:15:42 +02:00
parent 629a67197d
commit 6d8ec60307
21 changed files with 623 additions and 212 deletions

View File

@ -2,66 +2,91 @@
<odoo> <odoo>
<data> <data>
<template id="custom_external_layout_standard_barcode"> <template id="custom_external_layout_standard_barcode">
<div class="header"> <style type="text/css">
<div class="row"> @font-face {
<br/> font-family: 'DroidKufi';
<table align="left" src: url("/cm_odex_barcode/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
style="border:1px solid white;width:50;margin-left:60px;margin-top:0px;margin-right:5px;margin-bottom:40px;text-align: justify;"> font-weight: normal;
<tr style="border:0px"> font-style: normal;
<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"/> .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-set="date_hijri2" t-value="date_hijri.split('-')"/>
<t t-esc="date_hijri2[2]"/>
</td> <t t-esc="date_hijri2[0]"/>/<t t-esc="date_hijri2[1]"/>/
</tr> <t t-esc="date_hijri2[2]"/>
<tr> </td>
<td colspan="2" style="border:0px;padding-right:30px !important;"> </tr>
<span style="font-weight:bold;">Reference:</span> <tr>
<span t-field="o.transaction_date" t-field-options='{"format": "yyyy/MM/dd"}'/> <td colspan="2" style="border:0px;padding-right:30px !important;">
</td> <span style="font-weight:bold;">Reference:</span>
</tr> <span t-field="o.transaction_date" t-field-options='{"format": "yyyy/MM/dd"}'/>
<tr> </td>
<td colspan="2" style="border:0px;padding-right:30px !important;"> </tr>
<span style="font-weight:bold">Attachment:</span> <tr>
<span style="direction: ltr !important;"> <td colspan="2" style="border:0px;padding-right:30px !important;">
<t t-esc="o.attachment_num"/> <span style="font-weight:bold">Attachment:</span>
</span> <span style="direction: ltr !important;">
</td> <t t-esc="o.attachment_num"/>
</tr> </span>
<tr style="border:0px"> </td>
<td colspan="2" style="border:0px"> </tr>
<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.name, 600, 100)" <tr style="border:0px">
style="width:250px;height:40px;margin-top:5px;"/> <td colspan="2" style="border:0px">
</td> <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.name, 600, 100)"
</tr> style="width:250px;height:40px;margin-top:5px;"/>
</table> </td>
</div> </tr>
</table>
</div> </div>
<div class="article o_report_layout_standard"> </div>
<div class="article o_report_layout_standard droidkufi-font">
<t t-raw="0"/> <t t-raw="0"/>
</div> </div>
<div class="footer"> <div class="footer">
<!-- <div class="text-center">--> <!-- <div class="text-center">-->
<!-- <div class="text-muted">--> <!-- <div class="text-muted">-->
<!-- Page: <span class="page"/> / <span class="topage"/>--> <!-- Page: <span class="page"/> / <span class="topage"/>-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
</div> </div>
</template> </template>
<template id="barcode_external_layout"> <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 --> <!-- Multicompany -->
<t t-if="not o and doc"> <t t-if="not o and doc">
<t t-set="o" t-value="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-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"/> <t t-set="company" t-value="res_company"/>
</t> </t>
<div class="header"> <div class="header droidkufi-font">
<div class="row"> <div class="row">
<br/> <br/>
<table align="left" <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;"> 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"> <tr style="border:0px">
<td style="font-weight: bold;border:0px;padding-right:30px !important;">Number: <td style="font-weight: bold;border:0px;padding-right:30px !important;">Number:
<t t-esc="o.name"/> <t t-esc="o.name"/>
</td> </td>
</tr> </tr>
<tr style="border:0px"> <tr style="border:0px">
<td colspan="2" style="border:0px;padding-right:30px !important;"> <td colspan="2" style="border:0px;padding-right:30px !important;">
<span style="font-weight:bold;font-stretch: expanded;"> <span style="font-weight:bold;font-stretch: expanded;">
Date: Date:
</span> </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[0]"/>/<t t-esc="date_hijri2[1]"/>/
<t t-esc="date_hijri2[2]"/> <t t-esc="date_hijri2[2]"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2" style="border:0px;padding-right:30px !important;"> <td colspan="2" style="border:0px;padding-right:30px !important;">
<span style="font-weight:bold;">Reference:</span> <span style="font-weight:bold;">Reference:</span>
<span t-field="o.transaction_date" t-field-options='{"format": "yyyy/MM/dd"}'/> <span t-field="o.transaction_date" t-field-options='{"format": "yyyy/MM/dd"}'/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2" style="border:0px;padding-right:30px !important;"> <td colspan="2" style="border:0px;padding-right:30px !important;">
<span style="font-weight:bold">Attachment:</span> <span style="font-weight:bold">Attachment:</span>
<span style="direction: ltr !important;"> <span style="direction: ltr !important;">
<t t-esc="o.attachment_num"/> <t t-esc="o.attachment_num"/>
</span> </span>
</td> </td>
</tr> </tr>
<tr style="border:0px"> <tr style="border:0px">
<td colspan="2" 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.name, 600, 100)" <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.name, 600, 100)"
style="width:250px;height:40px;margin-top:5px;"/> style="width:250px;height:40px;margin-top:5px;"/>
</td> </td>
</tr> </tr>
</table> </table>
</div>
</div> </div>
</div>
<br></br> <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> </template>
<!-- Translatable template --> <!-- Translatable template -->
<template id="report_transaction_barcode"> <template id="report_transaction_barcode">
<t t-call="cm_odex_barcode.barcode_external_layout"> <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;"> <div class="row text-center" style="direction: rtl;">
<table style="margin-right:70%;"> <table style="margin-right:70%;">
<tr> <tr>
@ -149,17 +176,20 @@
</table> </table>
<table style="margin-right:70%;"> <table style="margin-right:70%;">
<tr> <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_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]"/> <t t-esc="date_hijri2[0]"/>/<t t-esc="date_hijri2[1]"/>/
<t t-esc="date_hijri2[2]"/>
</td> </td>
</tr> </tr>
<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"}'/> <span t-field="o.transaction_date" t-field-options='{"format": "yyyy/MM/dd"}'/>
</td> </td>
</tr> </tr>

View File

@ -2659,10 +2659,7 @@ msgstr "المعاملات الداخلية المردوده"
msgid "Remove from Favorite" msgid "Remove from Favorite"
msgstr "الحذف من قائمة المفضلة" msgstr "الحذف من قائمة المفضلة"
#. module: exp_transaction_documents
#: model:ir.model,name:exp_transaction_documents.model_res_partner
msgid "Renter"
msgstr ""
#. module: exp_transaction_documents #. module: exp_transaction_documents
#: model_terms:ir.ui.view,arch_db:exp_transaction_documents.common_outgoing_external_transaction_form #: model_terms:ir.ui.view,arch_db:exp_transaction_documents.common_outgoing_external_transaction_form

View File

@ -2,51 +2,67 @@
<data> <data>
<!-- Translatable template --> <!-- Translatable template -->
<template id="report_transaction_barcode_document"> <template id="report_transaction_barcode_document">
<t t-call="exp_transaction_documents.custom_external_layout"> <t t-call="exp_transaction_documents.custom_external_layout">
<div class="page"> <style type="text/css">
<div class="row text-center" style="direction: rtl;"> @font-face {
<table style="margin-right:70%;"> font-family: 'DroidKufi';
<tr> src: url("/exp_transaction_documents/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
<td style="font-weight: bold;">Number:</td> font-weight: normal;
<td style="direction: ltr !important;"> font-style: normal;
<t t-esc="o.name"/> }
</td>
</tr>
</table>
<table style="margin-right:70%;">
<tr>
<td><span style="font-weight:bold">Date:</span>
<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]"/> <t t-set="date_hijri" t-value="o.transaction_date_hijri"/>
</td>
</tr> <t t-set="date_hijri2" t-value="date_hijri.split('-')"/>
<tr>
<td><span style="font-weight:bold">Reference:</span> <t t-esc="date_hijri2[0]"/>/<t t-esc="date_hijri2[1]"/>/
<span t-field="o.transaction_date" t-field-options='{"format": "yyyy/MM/dd"}'/> <t t-esc="date_hijri2[2]"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<span style="font-weight:bold">Attachment:</span> <span style="font-weight:bold">Reference:</span>
<span style="direction: ltr !important;"> <span t-field="o.transaction_date" t-field-options='{"format": "yyyy/MM/dd"}'/>
<t t-esc="o.attachment_num"/> </td>
</span> </tr>
</td> <tr>
</tr> <td>
<tr> <span style="font-weight:bold">Attachment:</span>
<td colspan="2"> <span style="direction: ltr !important;">
<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.name, 600, 100)" <t t-esc="o.attachment_num"/>
style="width:250px;height:40px;margin-top:5px;"/> </span>
</td> </td>
</tr> </tr>
</table> <tr>
</div> <td colspan="2">
</div> <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.name, 600, 100)"
</t> style="width:250px;height:40px;margin-top:5px;"/>
</td>
</tr>
</table>
</div>
</div>
</t>
</template> </template>
<!-- Base Template --> <!-- Base Template -->
<template id="report_internal_transaction_barcode"> <template id="report_internal_transaction_barcode">

View File

@ -22,8 +22,18 @@
.header-section td { .header-section td {
border: none; 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> </style>
<div class="page"> <div class="page droidkufi-font">
<br/> <br/>
<h4 style="text-align:center;margin-top:120px;font-weight:bold">Receiver Transaction Report <h4 style="text-align:center;margin-top:120px;font-weight:bold">Receiver Transaction Report
</h4> </h4>

View File

@ -47,12 +47,14 @@
<t t-call="exp_transaction_documents.custom_external_layout_standard_tran"> <t t-call="exp_transaction_documents.custom_external_layout_standard_tran">
<style type="text/css"> <style type="text/css">
@font-face { @font-face {
font-family: 'ae_AlMohanad'; font-family: 'DroidKufi';
src: local('ae_AlMohanad'), local('ae_AlMohanad'), src: url("/exp_transaction_documents/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
url('/exp_transaction_documents/static/fonts/ae_AlMohanad.ttf') format('truetype'); font-weight: normal;
font-style: normal;
} }
*{
font-family: ae_AlMohanad; .droidkufi-font {
font-family: 'DroidKufi', sans-serif;
} }
table { table {
border: 1px solid black; border: 1px solid black;
@ -69,7 +71,7 @@
background-color:#d3d3d3; background-color:#d3d3d3;
} }
</style> </style>
<div class="page"> <div class="page droidkufi-font">
<br/> <br/>
<br/> <br/>
<br/> <br/>

View File

@ -174,7 +174,7 @@
<field name="state">code</field> <field name="state">code</field>
<field name="code"> <field name="code">
if records: if records:
action = records.action_read() action = records.action_read()
</field> </field>
</record> </record>
<record id="action_unread_out_transaction_from" model="ir.actions.server"> <record id="action_unread_out_transaction_from" model="ir.actions.server">

View File

@ -45,17 +45,19 @@
<template id="achievement_tran_report_temp"> <template id="achievement_tran_report_temp">
<t t-call="web.html_container"> <t t-call="web.html_container">
<t t-call="exp_transaction_report.custom_external_layout_all"> <t t-call="exp_transaction_report.custom_external_layout_all">
<style type="text/css"> <style type="text/css">
@font-face { @font-face {
font-family: 'ae_AlMohanad'; font-family: 'DroidKufi';
src: local('ae_AlMohanad'), local('ae_AlMohanad'), src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
url('/exp_transaction_report/static/fonts/ae_AlMohanad.ttf') format('truetype'); font-weight: normal;
} font-style: normal;
*{ }
font-family: ae_AlMohanad;
} .droidkufi-font {
</style> font-family: 'DroidKufi', sans-serif;
<div class="page"> }
</style>
<div class="page droidkufi-font">
<h4 style="text-align:center;font-weight:bold">Achievement Report</h4> <h4 style="text-align:center;font-weight:bold">Achievement Report</h4>
<br/> <br/>
<div style="width:100%;text-align:center"> <div style="width:100%;text-align:center">

View File

@ -6,15 +6,18 @@
<t t-call="exp_transaction_report.custom_external_layout_all"> <t t-call="exp_transaction_report.custom_external_layout_all">
<style type="text/css"> <style type="text/css">
@font-face { @font-face {
font-family: 'ae_AlMohanad'; font-family: 'DroidKufi';
src: local('ae_AlMohanad'), local('ae_AlMohanad'), src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
url('/exp_transaction_report/static/fonts/ae_AlMohanad.ttf') format('truetype'); font-weight: normal;
font-style: normal;
} }
*{
font-family: ae_AlMohanad; .droidkufi-font {
font-family: 'DroidKufi', sans-serif;
} }
</style> </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> <h4 style="text-align:center;font-weight:bold">Closed Transaction Report</h4>
<br/> <br/>
<div style="width:100%;text-align:center"> <div style="width:100%;text-align:center">

View File

@ -4,17 +4,20 @@
<template id="template_forw_transaction_report"> <template id="template_forw_transaction_report">
<t t-call="web.html_container"> <t t-call="web.html_container">
<t t-call="exp_transaction_report.custom_external_layout_all"> <t t-call="exp_transaction_report.custom_external_layout_all">
<style type="text/css"> <style type="text/css">
@font-face { @font-face {
font-family: 'ae_AlMohanad'; font-family: 'DroidKufi';
src: local('ae_AlMohanad'), local('ae_AlMohanad'), src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
url('/exp_transaction_report/static/fonts/ae_AlMohanad.ttf') format('truetype'); font-weight: normal;
font-style: normal;
} }
*{
font-family: ae_AlMohanad; .droidkufi-font {
font-family: 'DroidKufi', sans-serif;
} }
</style> </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> <h4 style="text-align:center;font-weight:bold">Forward Transaction Report</h4>
<br/> <br/>
<div style="width:100%;text-align:center"> <div style="width:100%;text-align:center">

View File

@ -6,15 +6,18 @@
<t t-call="exp_transaction_report.custom_external_layout_all"> <t t-call="exp_transaction_report.custom_external_layout_all">
<style type="text/css"> <style type="text/css">
@font-face { @font-face {
font-family: 'ae_AlMohanad'; font-family: 'DroidKufi';
src: local('ae_AlMohanad'), local('ae_AlMohanad'), src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
url('/exp_transaction_report/static/fonts/ae_AlMohanad.ttf') format('truetype'); font-weight: normal;
font-style: normal;
} }
*{
font-family: ae_AlMohanad; .droidkufi-font {
font-family: 'DroidKufi', sans-serif;
} }
</style> </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> <h4 style="text-align:center;font-weight:bold">Incoming Transaction Report</h4>
<br/> <br/>
<div style="width:100%;text-align:center"> <div style="width:100%;text-align:center">

View File

@ -6,15 +6,17 @@
<t t-call="exp_transaction_report.custom_external_layout_all"> <t t-call="exp_transaction_report.custom_external_layout_all">
<style type="text/css"> <style type="text/css">
@font-face { @font-face {
font-family: 'ae_AlMohanad'; font-family: 'DroidKufi';
src: local('ae_AlMohanad'), local('ae_AlMohanad'), src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
url('/exp_transaction_report/static/fonts/ae_AlMohanad.ttf') format('truetype'); font-weight: normal;
font-style: normal;
} }
*{
font-family: ae_AlMohanad; .droidkufi-font {
font-family: 'DroidKufi', sans-serif;
} }
</style> </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> <h4 style="text-align:center;font-weight:bold">Late Transaction Report</h4>
<br/> <br/>
<div style="width:100%;"> <div style="width:100%;">

View File

@ -4,17 +4,19 @@
<template id="template_out_transaction_report"> <template id="template_out_transaction_report">
<t t-call="web.html_container"> <t t-call="web.html_container">
<t t-call="exp_transaction_report.custom_external_layout_all"> <t t-call="exp_transaction_report.custom_external_layout_all">
<style type="text/css"> <style type="text/css">
@font-face { @font-face {
font-family: 'ae_AlMohanad'; font-family: 'DroidKufi';
src: local('ae_AlMohanad'), local('ae_AlMohanad'), src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
url('/exp_transaction_report/static/fonts/ae_AlMohanad.ttf') format('truetype'); font-weight: normal;
font-style: normal;
} }
*{
font-family: ae_AlMohanad; .droidkufi-font {
font-family: 'DroidKufi', sans-serif;
} }
</style> </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> <h4 style="text-align:center;font-weight:bold">Outgoing Transaction Report</h4>
<br/> <br/>
<div style="width:100%;text-align:center"> <div style="width:100%;text-align:center">

View File

@ -6,15 +6,17 @@
<t t-call="exp_transaction_report.custom_external_layout_all"> <t t-call="exp_transaction_report.custom_external_layout_all">
<style type="text/css"> <style type="text/css">
@font-face { @font-face {
font-family: 'ae_AlMohanad'; font-family: 'DroidKufi';
src: local('ae_AlMohanad'), local('ae_AlMohanad'), src: url("/exp_transaction_report/static/src/fonts/DroidKufi-Bold.ttf") format("truetype");
url('/exp_transaction_report/static/fonts/ae_AlMohanad.ttf') format('truetype'); font-weight: normal;
font-style: normal;
} }
*{
font-family: ae_AlMohanad; .droidkufi-font {
font-family: 'DroidKufi', sans-serif;
} }
</style> </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> <h4 style="text-align:center;font-weight:bold">Report outstanding Transaction</h4>
<br/> <br/>
<h4 style="text-align:center;font-weight:bold"> <h4 style="text-align:center;font-weight:bold">

View File

@ -23,6 +23,7 @@ Letters Managment
'security/ir.model.access.csv', 'security/ir.model.access.csv',
'views/letters_view.xml', 'views/letters_view.xml',
'reports/letter_template.xml', 'reports/letter_template.xml',
'reports/formal_letter.xml',
], ],
'qweb' : [ 'qweb' : [
], ],

View File

@ -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&amp;value=%s&amp;width=%`s&amp;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&amp;value=%s&amp;width=%s&amp;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&amp;value=%s&amp;width=%s&amp;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>

View File

@ -266,7 +266,19 @@
<t t-call="web.html_container"> <t t-call="web.html_container">
<t t-foreach="docs" t-as="o"> <t t-foreach="docs" t-as="o">
<t t-call="exp_transation_letters.letter_external_layout"> <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 style="text-align:center;margin-top:20px;font-weight:bold;font-size:20pt">Letter <t t-esc="o.name"/>-->
<!-- </h4>--> <!-- </h4>-->
<!-- <strong style="margin: 10px;margin-left:30px"> Date </strong>: <span t-esc="o.date" />--> <!-- <strong style="margin: 10px;margin-left:30px"> Date </strong>: <span t-esc="o.date" />-->