Debian Codegraph @

addons/l10n_ar_withholding/wizards/account_payment_register_views.xml

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3 <record id="view_account_payment_register_form" model="ir.ui.view">
4 <field name="name">account.payment.register.form</field>
5 <field name="model">account.payment.register</field>
6 <field name="inherit_id" ref="l10n_latam_check.view_account_payment_register_form"/>
7 <field name="arch" type="xml">
8 <page name="latam_checks_page" position="after">
9 <page name="withholdings_page" string="Withholdings" invisible="country_code != 'AR'">
10 <field name="l10n_ar_withholding_ids" nolabel="1" colspan="2">
11 <list editable="bottom">
12 <field name="withholding_sequence_id" column_invisible="True"/>
13 <field name="company_id" column_invisible="True"/>
14 <field name="currency_id" column_invisible="True"/>
15 <field name="tax_id" options="{'no_open': True, 'no_create': True}"/>
16 <field name="name" readonly="withholding_sequence_id"/>
17 <field name="base_amount"/>
18 <field name="amount"/>
19 </list>
20 </field>
21 </page>
22 </page>
23 <group>
24 <group colspan="2" invisible="country_code != 'AR' or not can_edit_wizard or (can_group_payments and not group_payment)">
25 <label for="l10n_ar_net_amount" string="Net Amount" invisible="l10n_latam_move_check_ids or l10n_latam_new_check_ids"/>
26 <label for="l10n_ar_net_amount" string="Check amount" invisible="not l10n_latam_move_check_ids and not l10n_latam_new_check_ids"/>
27 <field name="l10n_ar_net_amount" nolabel="1" />
28 <field name="l10n_ar_adjustment_warning" invisible="True"/>
29 <p colspan="2" invisible="not l10n_ar_adjustment_warning" class="alert alert-warning" role="alert">
30 Adjust total amount or withholdings amount so that the check amount is the correct one.
31 </p>
32 </group>
33 </group>
34 <div role="alert" position="after">
35 <div role="alert" class="alert alert-info"
36 invisible="country_code != 'AR' or can_edit_wizard and (not can_group_payments or can_group_payments and group_payment)">
37 <p>You can't register withholdings when paying invoices of different partners or same partner without grouping</p>
38 </div>
39 </div>
40 </field>
41 </record>
42 </odoo>