mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-27 01:32:02 +02:00
34 lines
1.8 KiB
XML
34 lines
1.8 KiB
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.attendance</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">
|
|
<button name="action_open_last_month_attendances"
|
|
class="oe_stat_button"
|
|
icon="fa-clock-o"
|
|
type="object"
|
|
groups="base.group_user"
|
|
help="Worked hours this month"
|
|
invisible="not is_user">
|
|
<div class="o_field_widget o_stat_info">
|
|
<span class="o_stat_value">
|
|
<field name="hours_last_month" widget="float_time"/>
|
|
<span class="o_stat_value text-success" invisible="hours_last_month_overtime <= 0 or not display_extra_hours">
|
|
(+<field name="hours_last_month_overtime" widget="float_time"/>)
|
|
</span>
|
|
<span class="o_stat_value text-danger" invisible="hours_last_month_overtime >= 0 or not display_extra_hours">
|
|
(<field name="hours_last_month_overtime" widget="float_time"/>)
|
|
</span>
|
|
</span>
|
|
<span class="o_stat_text">
|
|
Monthly Hours
|
|
</span>
|
|
</div>
|
|
</button>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|