<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="view_account_payment_form" model="ir.ui.view">
        <field name="name">account.payment.form.inherited</field>
        <field name="model">account.payment</field>
        <field name="inherit_id" ref="l10n_latam_check.view_account_payment_form_inherited" />
        <field name="arch" type="xml">
            <page name="latam_checks_page" position="after">
                <page name="withholdings_page" string="Withholdings" invisible="country_code != 'AR'">
                    <field name="l10n_ar_withholding_ids" nolabel="1" colspan="2" readonly="True">
                        <list>
                            <field name="move_name" column_invisible="True"/>
                            <field name="tax_line_id" string="Tax"/>
                            <field name="name" string="Withholding Number" required="1"/>
                            <field name="tax_base_amount"/>
                            <field name="amount_currency" readonly="0" required="1" string="Amount" sum="Total"/>
                        </list>
                    </field>
                </page>
            </page>
        </field>
    </record>
</odoo>
