<odoo>
    <record id="account_asset_compute_view_form" model="ir.ui.view">
        <field name="name">account.asset.compute</field>
        <field name="model">account.asset.compute</field>
        <field
            name="inherit_id"
            ref="account_asset_management.account_asset_compute_view_form"
        />
        <field name="arch" type="xml">
            <group position="after">
                <group>
                    <group>
                        <field name="use_batch" widget="boolean_toggle" />
                        <field
                            name="batch_name"
                            attrs="{'invisible': [('use_batch', '=', False)], 'required': [('use_batch', '=', True)]}"
                        />
                        <field
                            name="description"
                            attrs="{'invisible': [('use_batch', '=', False)], 'required': [('use_batch', '=', True)]}"
                        />
                        <field
                            name="delay_compute"
                            attrs="{'invisible': [('use_batch', '=', False)]}"
                        />
                    </group>
                    <group>
                        <field
                            name="profile_ids"
                            attrs="{'invisible': [('use_batch', '=', False)]}"
                        >
                            <tree>
                                <field name="name" />
                            </tree>
                        </field>
                    </group>
                </group>
            </group>
        </field>
    </record>
</odoo>
