forked from Mapan/odoo17e
60 lines
2.9 KiB
XML
60 lines
2.9 KiB
XML
<odoo>
|
|
<record model="ir.ui.view" id="account_reports_journal_dashboard_kanban_view">
|
|
<field name="name">account.journal.dashboard.kanban.reports</field>
|
|
<field name="model">account.journal</field>
|
|
<field name="inherit_id" ref="account.account_journal_dashboard_kanban_view" />
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//div[hasclass('o_kanban_manage_reports')]" position="inside">
|
|
<div t-if="journal_type == 'sale'">
|
|
<a type="action" name="%(action_account_report_ar)d">Aged Receivables</a>
|
|
</div>
|
|
<div t-if="journal_type == 'purchase'">
|
|
<a type="action" name="%(action_account_report_ap)d">Aged Payables</a>
|
|
</div>
|
|
</xpath>
|
|
|
|
<!-- Replace the displayed amount by an action opening the General Ledger report -->
|
|
<xpath expr="//div[@id='dashboard_bank_cash_balance']" position="replace">
|
|
<div id="dashboard_bank_cash_balance" class="col overflow-hidden text-start">
|
|
<a type="object" name="action_open_bank_balance_in_gl" title="Last Statement balance + Transactions since statement">Balance</a>
|
|
</div>
|
|
</xpath>
|
|
|
|
<xpath expr="//div[@name='latest_statement']//span" position="replace">
|
|
<a type="object"
|
|
name="action_open_reconcile_statement"
|
|
title="Latest Statement"
|
|
t-att-context="{'statement_id': dashboard.last_statement_id}">
|
|
Last Statement
|
|
</a>
|
|
</xpath>
|
|
|
|
<!-- Replace the displayed amount by an action opening the unmatched payments view -->
|
|
<xpath expr="//div[@id='dashboard_bank_cash_outstanding_balance']" position="replace">
|
|
<div id="dashboard_bank_cash_outstanding_balance" class="col overflow-hidden text-start">
|
|
<a
|
|
type="action"
|
|
name="%(account.action_account_all_payments)d"
|
|
context="{'search_default_unmatched': True, 'search_default_journal_id': id, 'search_default_state_posted': True}"
|
|
>
|
|
Payments
|
|
</a>
|
|
</div>
|
|
</xpath>
|
|
|
|
<xpath expr="//div[@t-if="journal_type == 'bank' || journal_type == 'cash'"]" position="inside">
|
|
<div class="col-4 o_kanban_card_manage_section o_kanban_manage_reconciliation">
|
|
<h5 id="card_action_view_menus" class="o_kanban_card_manage_title">
|
|
<span role="separator">Reconciliation</span>
|
|
</h5>
|
|
<div>
|
|
<a type="action" name="%(action_account_report_bank_reconciliation)d">Reconciliation Report</a>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
|
|
</field>
|
|
</record>
|
|
</odoo>
|