| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="hr_employee_public_view_form" model="ir.ui.view"> |
| 4 |
<field name="name">hr.employee.public.form.inherit.timesheet</field> |
| 5 |
<field name="model">hr.employee.public</field> |
| 6 |
<field name="inherit_id" ref="hr.hr_employee_public_view_form"/> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<xpath expr="//div[@name='button_box']" position="inside"> |
| 9 |
<field name="has_timesheet" groups="hr_timesheet.group_hr_timesheet_user" invisible="1"/> |
| 10 |
<button invisible="not is_user or not has_timesheet" class="oe_stat_button" type="object" name="action_timesheet_from_employee" icon="fa-calendar" groups="hr_timesheet.group_hr_timesheet_user"> |
| 11 |
<div class="o_stat_info"> |
| 12 |
<span class="o_stat_text">Timesheets</span> |
| 13 |
</div> |
| 14 |
</button> |
| 15 |
</xpath> |
| 16 |
</field> |
| 17 |
</record> |
| 18 |
</odoo> |