| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="res_config_settings_view_form" model="ir.ui.view"> |
| 4 |
<field name="name">res.config.settings.view.form.inherit.hr.attendance</field> |
| 5 |
<field name="model">res.config.settings</field> |
| 6 |
<field name="priority" eval="80"/> |
| 7 |
<field name="inherit_id" ref="base.res_config_settings_view_form"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<xpath expr="//form" position="inside"> |
| 10 |
<app data-string="Attendances" string="Attendances" name="hr_attendance" groups="hr_attendance.group_hr_attendance_manager"> |
| 11 |
<block title="Modes" name="kiosk_mode_setting_container"> |
| 12 |
<setting string="Kiosk Mode" company_dependent="1" help="Define the way the user will be identified by the application."> |
| 13 |
<field name="attendance_kiosk_mode" required="1" class="w-75"/> |
| 14 |
<div> |
| 15 |
<a href="https://www.odoo.com/documentation/latest/applications/hr/attendances/hardware.html" |
| 16 |
target="_blank"><i class="fa fa-fw fa-arrow-right"/>Installation Manual</a> |
| 17 |
</div> |
| 18 |
</setting> |
| 19 |
<setting string="Attendances from Backend" company_dependent="1" help="Allow Users to Check in/out from Odoo."> |
| 20 |
<field name="attendance_from_systray" required="1"/> |
| 21 |
</setting> |
| 22 |
<setting string="Automatic Check-Out" company_dependent="1" help="Automatically Check-Out Employees based on their working schedule with an additional tolerance. Does not apply to employees with a flexible working schedule."> |
| 23 |
<field name="auto_check_out"/> |
| 24 |
<div invisible="not auto_check_out"> |
| 25 |
<span class="me-2">Tolerance</span><field name="auto_check_out_tolerance" class="text-center" style="width: 5ch;"/><span class="ms-2">Hours</span> |
| 26 |
</div> |
| 27 |
</setting> |
| 28 |
<setting string="Absence Management" company_dependent="1" help="If checked, days not covered by an attendance will be visible in the Report. Does not apply to employees with a flexible working schedule."> |
| 29 |
<field name="absence_management"/> |
| 30 |
</setting> |
| 31 |
<setting string="Device & Location Tracking" company_dependent="1" help="Allow the collection of GPS location, IP address, and browser/device details used to track employee access and attendance"> |
| 32 |
<field name="attendance_device_tracking"/> |
| 33 |
</setting> |
| 34 |
</block> |
| 35 |
<block title="Kiosk Settings"> |
| 36 |
<setting invisible="attendance_kiosk_mode == 'manual'" company_dependent="1" help="Define the camera used for the barcode scan."> |
| 37 |
<field name="attendance_barcode_source" required="1"/> |
| 38 |
</setting> |
| 39 |
<setting string="Display Time" company_dependent="1" help="Choose how long the greeting message will be displayed."> |
| 40 |
<field name="attendance_kiosk_delay" required="1" class="text-center" style="width: 10%; min-width: 4rem;"/><span> seconds</span> |
| 41 |
</setting> |
| 42 |
<setting title="Set PIN codes in the employee detail form (in HR Settings tab)." invisible="attendance_kiosk_mode == 'barcode'" help="Use PIN codes (defined on the Employee's profile) to check-in."> |
| 43 |
<field name="attendance_kiosk_use_pin"/> |
| 44 |
</setting> |
| 45 |
<setting title="Kiosk Mode Adress" help="Use this url to access your kiosk mode from any device."> |
| 46 |
<field name="attendance_kiosk_url" class="o_hr_kiosk_url_media w-100" style="width:100% !important;" widget="CopyClipboardURL"/> |
| 47 |
<button name="regenerate_kiosk_key" type="object" string="Generate new URL" class="btn-link" icon="fa-refresh"/> |
| 48 |
</setting> |
| 49 |
</block> |
| 50 |
<block title="Extra Hours" name="overtime_settings"> |
| 51 |
|
| 52 |
<setting company_dependent="1" invisible="1"> |
| 53 |
<div class="mt16"> |
| 54 |
<label for="overtime_company_threshold" class="o_form_label"> |
| 55 |
Tolerance Time In Favor Of Company |
| 56 |
</label> |
| 57 |
<div class="text-muted"> |
| 58 |
Allow a period of time (around working hours) where extra time will not be counted, in benefit of the company |
| 59 |
</div> |
| 60 |
<span class="me-2">Time Period</span><field name="overtime_company_threshold" class="text-center" style="width: 5ch;"/><span class="ms-2">Minutes</span> |
| 61 |
<br/> |
| 62 |
<br/> |
| 63 |
<label for="overtime_employee_threshold" class="o_form_label"> |
| 64 |
Tolerance Time In Favor Of Employee |
| 65 |
</label> |
| 66 |
<div class="text-muted"> |
| 67 |
Allow a period of time (around working hours) where extra time will not be deducted, in benefit of the employee |
| 68 |
</div> |
| 69 |
<span class="me-2">Time Period </span><field name="overtime_employee_threshold" class="text-center" style="width: 5ch;"/><span> Minutes</span> |
| 70 |
</div> |
| 71 |
</setting> |
| 72 |
<setting title="Display Extra Hours." string="Display Extra Hours" company_dependent="1" help="Display Extra Hours in Kiosk mode and on User profile."> |
| 73 |
<field name="hr_attendance_display_overtime"/> |
| 74 |
</setting> |
| 75 |
<setting title="Extra Hours Validation" string="Extra Hours Validation" company_dependent="1" help="Can be converted as Time Off (cfr Time Off configuration)."> |
| 76 |
<field name="attendance_overtime_validation" widget="radio"/> |
| 77 |
</setting> |
| 78 |
</block> |
| 79 |
</app> |
| 80 |
</xpath> |
| 81 |
</field> |
| 82 |
</record> |
| 83 |
|
| 84 |
<record id="action_hr_attendance_settings" model="ir.actions.act_window"> |
| 85 |
<field name="name">Settings</field> |
| 86 |
<field name="res_model">res.config.settings</field> |
| 87 |
<field name="view_mode">form</field> |
| 88 |
<field name="context">{'module' : 'hr_attendance', 'bin_size': False}</field> |
| 89 |
</record> |
| 90 |
|
| 91 |
<menuitem id="menu_hr_attendance_settings" name="Settings" parent="menu_hr_attendance_configuration" sequence="10" action="action_hr_attendance_settings" groups="hr_attendance.group_hr_attendance_manager"/> |
| 92 |
</odoo> |