diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml index 435a6ade1047ea69d2adb01f483cda357794cb47..c4a482ba7b039c424ef706b6ad2bfb226423514a 100644 --- a/addons/project/views/project_views.xml +++ b/addons/project/views/project_views.xml @@ -467,7 +467,12 @@ <field name="partner_id" attrs="{'readonly': [('parent_id', '!=', False)]}"/> <field name="email_from" attrs="{'readonly': [('parent_id', '!=', False)]}"/> <field name="email_cc" groups="base.group_no_one"/> - <field name="parent_id" attrs="{'invisible' : [('subtask_count', '>', 0)]}" groups="project.group_subtask_project"/> + <field + name="parent_id" + domain="[('parent_id', '=', False)]" + attrs="{'invisible' : [('subtask_count', '>', 0)]}" + groups="project.group_subtask_project" + /> <field name="child_ids" invisible="1" /> <field name="subtask_project_id" invisible="1" /> <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>