You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<record id="inherit_view_account_payment_form" model="ir.ui.view">
<field name="name">account.payment.form</field>
<field name="model">account.payment</field>
<field name="inherit_id" ref="account.view_account_payment_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//group[@name='group1']/field[@name='partner_id']" position="after">
<field name="destination_account_id" options="{'no_create': True}" required="1" attrs="{'readonly': ['|', ('state', '!=', 'draft'), ('is_internal_transfer', '=', True)]}"/>
</xpath>>
<xpath expr="//group[@name='group2']/field[@name='partner_bank_id']" position="after">
<field name="move_id" required="0" attrs="{'invisible': [('id', '=', False)]}" groups="account.group_account_readonly"/>
</xpath>
</data>
</field>
</record>
</data>
</odoo>