oca-ocb-hr/odoo-bringout-oca-ocb-hr_timesheet/hr_timesheet/views/hr_employee_public_views.xml
Ernad Husremovic e1d89e11e3 19.0 vanilla
2026-03-09 09:31:00 +01:00

18 lines
969 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="hr_employee_public_view_form" model="ir.ui.view">
<field name="name">hr.employee.public.form.inherit.timesheet</field>
<field name="model">hr.employee.public</field>
<field name="inherit_id" ref="hr.hr_employee_public_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<field name="has_timesheet" groups="hr_timesheet.group_hr_timesheet_user" invisible="1"/>
<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">
<div class="o_stat_info">
<span class="o_stat_text">Timesheets</span>
</div>
</button>
</xpath>
</field>
</record>
</odoo>