[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:
fda-odoo
2018-01-29 16:54:42 +01:00
parent 6fc2cc65d9
commit 11effd7bd1
+1 -1
View File
@@ -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>