[UPDATE]UPDATE

This commit is contained in:
zainab8585 2024-07-26 22:10:43 +02:00
parent 05bd5b9f39
commit f222e20159
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>