Skip to content

Commit fe24b34

Browse files
committed
[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#94291 X-original-commit: 352a057 Signed-off-by: Laurent Stukkens (ltu) <[email protected]>
1 parent 4a106be commit fe24b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/project/views/project_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@
973973
<field name="date_deadline" attrs="{'invisible': [('is_closed', '=', True)]}" optional="show"/>
974974
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" optional="hide"/>
975975
<field name="kanban_state" required="0" widget="state_selection" optional="show" options="{'hide_label': True}" nolabel="1" class="d-flex justify-content-center"/>
976-
<field name="stage_id" optional="show"/>
976+
<field name="stage_id" optional="show" context="{'default_project_id': project_id}"/>
977977
<button name="action_open_task" type="object" title="View Task" string="View Task" class="btn btn-link float-end"/>
978978
</tree>
979979
</field>

0 commit comments

Comments
 (0)