summaryrefslogtreecommitdiff
path: root/addons/payment/views/account_payment_views.xml
blob: c6ce4c1a88d75b678548694c528cafd3a437d35f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0"?>
<odoo>
    <data>
        <record id="view_account_payment_form_inherit_payment" model="ir.ui.view">
                <field name="name">view.account.payment.form.inherit.payment</field>
                <field name="model">account.payment</field>
                <field name="inherit_id" ref="account.view_account_payment_form"/>
                <field name="arch" type="xml">
                    <xpath expr='//group[2]' position="inside">
                        <field name="payment_transaction_id" groups="base.group_no_one" attrs="{'invisible': [('payment_method_code', '!=', 'electronic')]}"/>
                    </xpath>
                    <field name="payment_method_id" position="after">
                        <field name="payment_method_code" invisible="1"/>
                        <field name="related_partner_ids" invisible="1"/>
                        <field name="payment_token_id" options="{'no_create': True}"
                            attrs="{'invisible': [('payment_method_code', '!=', 'electronic')], 'readonly': [('state', '!=', 'draft')]}"/>
                    </field>
                </field>
        </record>
    </data>
</odoo>