Files
dn20/account_accountant/views/account_payment_views.xml
2026-11-04 19:58:07 +08:00

26 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_account_payment_form_inherit_account_accountant" model="ir.ui.view">
<field name="name">account.payment.form.inherit.account_accountant</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_journal_entry']" position="attributes">
<attribute name="groups">account.group_account_user</attribute>
</xpath>
<xpath expr="//field[@name='partner_bank_id'][last()]" position="after">
<field name="transaction_uuid" groups="base.group_no_one"/>
</xpath>
<!-- Stat button to open the manual reconciliation widget -->
<xpath expr="//div[@name='button_box']" position="inside">
<button name="action_open_manual_reconciliation_widget" type="object"
string="Payment Matching" class="oe_stat_button" icon="attach_money"
groups="account.group_account_user"
invisible="is_reconciled or not move_id or state not in ('reconciled', 'paid')"/>
</xpath>
</field>
</record>
</odoo>