Debian Codegraph @

addons/l10n_latam_check/wizards/account_payment_register_views.xml

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3
4 <record id="view_account_payment_register_form" model="ir.ui.view">
5 <field name="name">account.payment.register.form</field>
6 <field name="model">account.payment.register</field>
7 <field name="inherit_id" ref="account.view_account_payment_register_form"/>
8 <field name="arch" type="xml">
9 <group>
10 <notebook invisible="not can_edit_wizard or (can_group_payments and not group_payment)">
11 <page name="latam_checks_page" string="Checks" invisible="payment_method_code not in ['in_third_party_checks', 'out_third_party_checks', 'return_third_party_checks', 'new_third_party_checks', 'own_checks']">
12 <group name="latam_checks" colspan="2">
13 <field name="l10n_latam_new_check_ids" invisible="payment_method_code not in ['new_third_party_checks', 'own_checks']" nolabel="1" colspan="2" >
14 <list editable="bottom">
15 <field name="company_id" column_invisible="True"/>
16 <field name="currency_id" column_invisible="True"/>
17 <field name="name" />
18 <field name="bank_id" column_invisible="parent.payment_method_code == 'own_checks'"/>
19 <field name="issuer_vat" column_invisible="parent.payment_method_code == 'own_checks'"/>
20 <field name="payment_date"/>
21 <field name="amount" />
22 </list>
23 </field>
24 <field name="l10n_latam_move_check_ids" invisible="payment_method_code not in ['in_third_party_checks', 'out_third_party_checks', 'return_third_party_checks']"
25 domain="
26 [('payment_method_code', '=', 'new_third_party_checks'), ('current_journal_id', '=', journal_id), ('company_id', '=', company_id)]
27 if payment_type == 'outbound' else
28 [('payment_method_code', '=', 'new_third_party_checks'), ('current_journal_id', '=', False), ('company_id', '=', company_id)]" options="{'no_create': True}"
29 nolabel="1" colspan="2">
30 <list name="existing_checks">
31 <field name="company_id" column_invisible="True"/>
32 <field name="currency_id" column_invisible="True"/>
33 <field name="name" />
34 <field name="bank_id" optional="hide"/>
35 <field name="issuer_vat" optional="hide"/>
36 <field name="payment_date" optional="show"/>
37 <field name="amount"/>
38 </list>
39 </field>
40 </group>
41 </page>
42 </notebook>
43 </group>
44 <div role="alert" position="after">
45 <div role="alert" class="alert alert-info"
46 invisible="payment_method_code not in ['new_third_party_checks', 'in_third_party_checks', 'out_third_party_checks', 'return_third_party_checks', 'own_checks'] or can_edit_wizard and (not can_group_payments or can_group_payments and group_payment)">
47 <p>You can't use checks when paying invoices of different partners or same partner without grouping</p>
48 </div>
49 </div>
50 </field>
51 </record>
52
53 </odoo>