<?xml version="1.0"?>
<data>
                    <xpath expr="//button[@name='action_view_task']" position="after">
                        <field name="timesheet_count" invisible="1"/>
                        <field name="show_hours_recorded_button" invisible="1"/>
                        <button type="object" name="action_view_timesheet" class="oe_stat_button" icon="fa-clock-o" invisible="not show_hours_recorded_button" groups="hr_timesheet.group_hr_timesheet_user">
                           <div class="o_stat_info">
                               <span class="o_stat_value">
                                    <field name="timesheet_total_duration" class="mr4"/>
                                    <field name="timesheet_encode_uom_id" options="{'no_open': True}"/>
                                </span>
                                <span class="o_stat_text">Recorded</span>
                           </div>
                        </button>
                    </xpath>
                </data>
           