[IMP] project: remove task stat-button if there is no task linked to project
We shoud not display stat_button tasks on project kanban card if there is no task linked to the current project
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
<button class="oe_stat_button" name="attachment_tree_view" type="object" icon="fa-files-o">
|
||||
<field string="Documents" name="doc_count" widget="statinfo"/>
|
||||
</button>
|
||||
<button class="oe_stat_button" type="action"
|
||||
<button class="oe_stat_button" type="action" attrs="{'invisible': [('task_count', '=', 0)]}"
|
||||
name="%(act_project_project_2_project_task_all)d" icon="fa-tasks">
|
||||
<field string="Tasks" name="task_count" widget="statinfo" options="{'label_field': 'label_tasks'}"/>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user