diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:14:58 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:14:58 +0700 |
| commit | 1ca3b3df3421961caec3b747a364071c80f5c7da (patch) | |
| tree | 6778a1f0f3f9b4c6e26d6d87ccde16e24da6c9d6 /base_accounting_kit/views/payment_matching.xml | |
| parent | b57188be371d36d96caac4b8d65a40745c0e972c (diff) | |
initial commit
Diffstat (limited to 'base_accounting_kit/views/payment_matching.xml')
| -rw-r--r-- | base_accounting_kit/views/payment_matching.xml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/base_accounting_kit/views/payment_matching.xml b/base_accounting_kit/views/payment_matching.xml new file mode 100644 index 0000000..fb3d4ce --- /dev/null +++ b/base_accounting_kit/views/payment_matching.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8" ?> +<odoo> + <record id="payment_matching_view" model="ir.ui.view"> + <field name="name">account.journal.dashboard.payment</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[@id='sale_purchase_refund']" position="after"> + <div> + <a type="object" name="action_open_reconcile" groups="account.group_account_user">Payments Matching</a> + </div> + </xpath> + <xpath expr="//div[@id='dashboard_bank_cash_left']/*[1]" position="before"> + <t t-if="dashboard.number_to_reconcile > 0"> + <button type="object" name="action_open_reconcile" class="btn btn-primary" groups="account.group_account_user"> Reconcile <t t-esc="dashboard.number_to_reconcile"/> Items</button> + </t> + </xpath> + </field> + </record> + <record id="matching_account_payment" model="ir.ui.view"> + <field name="name">account.payment.matching</field> + <field name="model">account.payment</field> + <field name="inherit_id" ref="account.view_account_payment_form" /> + <field name="arch" type="xml"> + <xpath expr="//button[@name='button_open_statements']" position="after"> + <button class="oe_stat_button" name="open_payment_matching_screen" + string="Payment Matching" type="object" + groups="account.group_account_user" + attrs="{'invisible': ['|', ('is_reconciled', '=', True), ('state', '!=', 'posted')]}" + icon="fa-dollar"/> + <field name="is_reconciled" invisible="1"/> + </xpath> + </field> + </record> +</odoo>
\ No newline at end of file |
