Debian Codegraph @

addons/l10n_latam_check/views/account_payment_view.xml

raw
1 <odoo>
2
3 <record id="view_account_payment_form_inherited" model="ir.ui.view">
4 <field name="name">account.payment.form.inherited</field>
5 <field name="model">account.payment</field>
6 <field name="inherit_id" ref="account.view_account_payment_form"/>
7 <field name="arch" type="xml">
8 <group>
9 <notebook>
10 <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']">
11 <group name="latam_checks" colspan="2">
12 <field name="l10n_latam_new_check_ids" invisible="payment_method_code not in ['new_third_party_checks', 'own_checks']" nolabel="1" colspan="2" readonly="state != 'draft'">
13 <list name="new_checks" editable="bottom">
14 <field name="company_id" column_invisible="True"/>
15 <field name="currency_id" column_invisible="True"/>
16 <field name="name" />
17 <field name="bank_id" column_invisible="parent.payment_method_code == 'own_checks'"/>
18 <field name="issuer_vat" column_invisible="parent.payment_method_code == 'own_checks'"/>
19 <field name="payment_date"/>
20 <field name="amount" />
21 <button type="object" name="get_formview_action" icon="fa-pencil-square-o" title="open" help="Open" column_invisible="parent.state == 'draft'"/>
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" readonly="state != 'draft'">
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="hide"/>
37 <field name="amount"/>
38 <button type="object" name="get_formview_action" icon="fa-pencil-square-o" title="open" help="Open"/>
39 </list>
40 </field>
41 </group>
42 </page>
43 </notebook>
44 </group>
45 <sheet position="before">
46 <div class="alert alert-danger mb-0" role="alert" invisible="not l10n_latam_check_warning_msg">
47 <field name="l10n_latam_check_warning_msg" nolabel="1"/>
48 </div>
49 </sheet>
50 </field>
51 </record>
52
53 </odoo>