[FIX] project: Creating a stage from a sub task

Steps to reproduce the bug:

- Let's consider a project P with a task T
- P has has two stages S1 and S2
- From T, create a new sub task ST1 with a new stage S3
- From T, create an other new sub task ST2 and try to select S3 as stage

Bug:

ST3 was not displayed in the available stages

Fix:

The stage ST3 is available for every task or sub task

opw:2873640

closes odoo/odoo#94487

X-original-commit: 5254407f5a593f37a1f21d43a725504c8dc0ab6d
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
This commit is contained in:
Goffin Simon
2022-06-24 09:26:04 +02:00
parent be1076e71a
commit d420adc877
+1 -1
View File
@@ -1202,7 +1202,7 @@
attrs="{'invisible': [('rating_last_text', '=', 'none')]}"
class="font-weight-bold" widget="badge" optional="hide"/>
<field name="kanban_state" widget="state_selection" optional="show" options="{'hide_label': True}" nolabel="1"/>
<field name="stage_id" optional="show"/>
<field name="stage_id" optional="show" context="{'default_project_id': project_id}"/>
<button name="action_open_task" type="object" title="View Task" string="View Task" class="btn btn-link float-end"/>
</tree>
</field>