Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
20
account_cash_deposit/report/report.xml
Executable file
20
account_cash_deposit/report/report.xml
Executable file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2022 Akretion France (http://www.akretion.com/)
|
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
<record id="report_account_cash_deposit" model="ir.actions.report">
|
||||
<field name="name">Cash Deposit/Order</field>
|
||||
<field name="model">account.cash.deposit</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">account_cash_deposit.report_cashdeposit</field>
|
||||
<field name="report_file">account_cash_deposit.report_cashdeposit</field>
|
||||
<field
|
||||
name="print_report_name"
|
||||
>'%s%s' % (object.display_name.replace(' ', '_'), object.state == 'draft' and '-draft' or '')</field>
|
||||
<field name="binding_model_id" ref="model_account_cash_deposit" />
|
||||
<field name="binding_type">report</field>
|
||||
</record>
|
||||
</odoo>
|
||||
109
account_cash_deposit/report/report_cashdeposit.xml
Executable file
109
account_cash_deposit/report/report_cashdeposit.xml
Executable file
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2022 Akretion France (www.akretion.com)
|
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
<template id="report_cashdeposit">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-call="web.external_layout">
|
||||
<div class="page">
|
||||
<h1>
|
||||
<span t-field="o.display_name" />
|
||||
</h1>
|
||||
<h3>Bank:</h3>
|
||||
<p>
|
||||
<span
|
||||
t-field="o.bank_journal_id.bank_account_id.bank_id.name"
|
||||
/>
|
||||
<br />
|
||||
<span
|
||||
t-field="o.bank_journal_id.bank_account_id.bank_id.street"
|
||||
/>
|
||||
<br />
|
||||
<span
|
||||
t-field="o.bank_journal_id.bank_account_id.bank_id.zip"
|
||||
/>
|
||||
<span
|
||||
t-field="o.bank_journal_id.bank_account_id.bank_id.city"
|
||||
/>
|
||||
</p>
|
||||
<p>
|
||||
<b
|
||||
t-if="o.operation_type == 'deposit'"
|
||||
>Bank Account Number to Credit:</b>
|
||||
<b
|
||||
t-if="o.operation_type == 'order'"
|
||||
>Bank Account Number to Debit:</b>
|
||||
<span
|
||||
t-field="o.bank_journal_id.bank_account_id.acc_number"
|
||||
/>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Currency:</strong>
|
||||
<span t-field="o.currency_id.name" />
|
||||
</p>
|
||||
<p t-if="o.operation_type == 'order'">
|
||||
<strong>Order Date:</strong>
|
||||
<span t-field="o.order_date" />
|
||||
</p>
|
||||
<p t-if="o.operation_type == 'deposit'">
|
||||
<strong>Date:</strong>
|
||||
<span t-field="o.date" />
|
||||
</p>
|
||||
|
||||
<table class="table table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Cash Unit</th>
|
||||
<th class="text-end">Quantity</th>
|
||||
<th class="text-end">Subtotal</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<t t-foreach="o.line_ids" t-as="line">
|
||||
<tr>
|
||||
<td>
|
||||
<span
|
||||
t-field="line.cash_unit_id.display_name"
|
||||
/>
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<span t-field="line.qty" />
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<span t-field="line.subtotal" />
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
<tr class="border-black o_total" t-if="o.coin_amount">
|
||||
<td />
|
||||
<td class="text-end">
|
||||
<strong>Loose Coins:</strong>
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<span t-field="o.coin_amount" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="border-black o_total">
|
||||
<td />
|
||||
<td class="text-end">
|
||||
<strong>Total:</strong>
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<span t-field="o.total_amount" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<p t-if="o.notes" name="notes">
|
||||
<span t-field="o.notes" />
|
||||
</p>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user