flectra/addons/payment/views/account_payment_views.xml
2018-01-16 02:34:37 -08:00

31 lines
1.5 KiB
XML

<?xml version="1.0"?>
<flectra>
<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"/>
</xpath>
</field>
</record>
<record id="view_account_payment_invoice_form_inherit_payment" model="ir.ui.view">
<field name="name">view.account.payment.invoice.form.inherit.payment</field>
<field name="model">account.payment</field>
<field name="inherit_id" ref="account.view_account_payment_invoice_form"/>
<field name="arch" type="xml">
<field name="payment_method_id" position="after">
<field name="payment_method_code" invisible="1"/>
<field name="payment_token_id" options="{'no_create': True}"
attrs="{'invisible': [('payment_method_code', '!=', 'electronic')],
'required': [('payment_method_code', '=', 'electronic')]}"/>
</field>
</field>
</record>
</data>
</flectra>