summaryrefslogtreecommitdiff
path: root/fixco_custom/views/account_payment.xml
blob: c2912813e68e522da6122bf4077e5e45fe6cf97d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="inherited_payment_form_view" model="ir.ui.view">
            <field name="name">inherited_payment_form_view</field>
            <field name="model">account.payment</field>
            <field name="inherit_id" ref="account.view_account_payment_form" />
            <field name="arch" type="xml">
                <button name="mark_as_sent" position="after">
                    <button name="auto_sync_payment" string="Sync Payment" type="object" attrs="{'invisible': ['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', True), ('payment_method_code', '!=', 'manual')]}"/>
                </button>
            </field>
        </record>
    </data>
</odoo>