<?xml version="1.0"?>
<div name="button_box" position="inside">
                    <button class="oe_stat_button" type="action" name="406" groups="project.group_project_user" context="{'search_default_partner_id': active_id, 'default_partner_id': active_id}" attrs="{'invisible': [('task_count', '=', 0)]}" icon="fa-tasks">
                        <field string="Tasks" name="task_count" widget="statinfo"/>
                    </button>
                </div>
            