Merge pull request #386 from expsa/new_dev_tr

[UPDATE]UPDATE
This commit is contained in:
zainab2097 2024-07-26 23:12:49 +03:00 committed by GitHub
commit 73dd952dab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 41 additions and 0 deletions

View File

@ -171,5 +171,46 @@
name="exp_transaction_documents.transaction_outgoing_receive_report"
paperformat="paperformat_transaction_receive_report"
menu="True"/>
<!-- add new report -->
<!-- <record id="paperformat_internal_transaction_card" model="report.paperformat">-->
<!-- <field name="name">Internal Transaction Card</field>-->
<!-- <field name="default" eval="True"/>-->
<!-- <field name="format">A4</field>-->
<!--&lt;!&ndash; <field name="page_height">140</field> &lt;!&ndash; Custom height &ndash;&gt;&ndash;&gt;-->
<!--&lt;!&ndash; <field name="page_width">210</field> &lt;!&ndash; A4 width &ndash;&gt;&ndash;&gt;-->
<!-- <field name="dpi">90</field>-->
<!-- <field name="margin_top">10</field>-->
<!-- <field name="margin_bottom">10</field>-->
<!-- <field name="margin_left">10</field>-->
<!-- <field name="margin_right">10</field>-->
<!-- </record>-->
<report
id="action_report_internal_transaction"
model="internal.transaction"
string="Print Transaction"
report_type="qweb-pdf"
name="exp_transaction_documents.report_internal_transaction"
file="exp_transaction_documents.report_internal_transaction"
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" class="page text-center">
<h2>تفاصيل المعاملة</h2>
<p> رقم المعاملة: <t t-esc="doc.name"/></p>
<p>الموضوع: <t t-esc="doc.subject"/></p>
<p>التاريخ: <t t-esc="doc.transaction_date"/></p>
<!-- Add more details as needed -->
</div>
</t>
</t>
</t>
</template>
<!-- end -->
</data>
</odoo>