[FIX] project: hide "Milestone" action button in project kanban card

Before this commit, when the Milestones feature is globally enabled
in the project app, the "Milestones" action button displayed in the
dropdown of the kanban card are always visible even if the project
has the feature disabled in its settings.

This commit changes the visibility of that action button to also
take into account the settings of each project.

task-3033041

X-original-commit: 05485bbd192c2316267d38934544d7f08ff4e9e8
Part-of: odoo/odoo#105709
This commit is contained in:
Prakash Prajapati
2022-11-14 18:17:52 +01:00
parent c0f78e9d27
commit e2b52e6358
+1 -1
View File
@@ -866,7 +866,7 @@
<div role="menuitem">
<a name="action_view_tasks" type="object">Tasks</a>
</div>
<div role="menuitem" groups="project.group_project_milestone">
<div role="menuitem" groups="project.group_project_milestone" t-if="record.allow_milestones.raw_value">
<a name="action_get_list_view" type="object">Milestones</a>
</div>
</div>