<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="project_task_form" model="ir.ui.view">
        <field name="model">project.task</field>
        <field name="inherit_id" ref="project.view_task_form2" />
        <field name="arch" type="xml">
            <field name="user_ids" position="after">
                <field
                    name="version_id"
                    options="{'no_create': True}"
                    domain="[('project_id', '=', project_id)]"
                />
            </field>
        </field>
    </record>
    <record id="project_task_search" model="ir.ui.view">
        <field name="model">project.task</field>
        <field name="inherit_id" ref="project.view_task_search_form" />
        <field name="arch" type="xml">
            <field name="name" position="after">
                <field name="version_id" />
            </field>
            <group expand="0">
                <filter
                    string="Version"
                    name="version_id"
                    help="Version"
                    context="{'group_by':'version_id'}"
                />
            </group>
        </field>
    </record>
</odoo>
