[FIX] project: fix the 'parent task' stat button visibility
Crrently, 'parent task' stat button is visible even if the 'sub-tasks' feature is disabled. So in this commit fixes the issue by adding the subtask group on button. task-2834743 closes odoo/odoo#93115 X-original-commit: cd7db331ae36ef2ecbb1b6795522cf469608c855 Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
This commit is contained in:
committed by
Barad Mahendra
parent
16ac049e11
commit
d4b364cdff
@@ -1064,7 +1064,7 @@
|
||||
</button>
|
||||
<!-- Dummy tag used to organize buttons -->
|
||||
<span id="end_rating_buttons" invisible="1"/>
|
||||
<button name="action_open_parent_task" type="object" class="oe_stat_button" icon="fa-tasks" string="Parent Task" attrs="{'invisible': [('parent_id', '=', False)]}"/>
|
||||
<button name="action_open_parent_task" type="object" class="oe_stat_button" icon="fa-tasks" string="Parent Task" attrs="{'invisible': ['|', ('allow_subtasks', '=', False), ('parent_id', '=', False)]}" groups="project.group_subtask_project"/>
|
||||
<button name="action_recurring_tasks" type="object" attrs="{'invisible': [('recurrence_id', '=', False)]}" class="oe_stat_button" icon="fa-repeat" groups="project.group_project_recurring_tasks">
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_value">
|
||||
|
||||
Reference in New Issue
Block a user