Skip to content
Snippets Groups Projects
Commit 8caf0037 authored by Yannick Tivisse's avatar Yannick Tivisse
Browse files

[IMP] project: Don't display stages if project is not set


Purpose
=======

If the user creates a task and if the project isn't set, then all the
stages that are not linked to a project are displayed, which is polluting
the form view.

Specifications
==============

If no project is set on the task form view, do not display any stages
in the statusbar.

closes odoo/odoo#40041

Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent 7a2d960e
No related branches found
No related tags found
No related merge requests found
......@@ -442,7 +442,7 @@
<header>
<button name="action_assign_to_me" string="Assign to Me" type="object" class="oe_highlight"
attrs="{'invisible' : [('user_id', '!=', False)]}"/>
<field name="stage_id" widget="statusbar" options="{'clickable': '1', 'fold_field': 'fold'}"/>
<field name="stage_id" widget="statusbar" options="{'clickable': '1', 'fold_field': 'fold'}" attrs="{'invisible': [('project_id', '=', False)]}"/>
</header>
<sheet string="Task">
<div class="oe_button_box" name="button_box">
......
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