Skip to content
Snippets Groups Projects
Commit 41173789 authored by jvm-odoo's avatar jvm-odoo Committed by fw-bot
Browse files

[FIX] project: fix multi level subtask


- Create a project
- Create 3 tasks in the project (top, middle, bottom)
- Set top as the parent of middle
- Set middle as the parent of bottom

We don't want to allow multi level subtasks. The behavior is not the
same if you set middle as the parent of bottom first. The "parent task"
field will not be displayed.

This commit remove the tasks who have a parent from the m2o field.

OPW-2087921

closes odoo/odoo#39805

X-original-commit: c7966b64
Signed-off-by: default avatarJason Van Malder <jasonvanmalder@users.noreply.github.com>
parent 9b5d1f6b
No related branches found
No related tags found
No related merge requests found
......@@ -491,7 +491,12 @@
<field name="partner_id"/>
<field name="email_from" invisible="1"/>
<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}"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment