You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
4.0 KiB
77 lines
4.0 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
Adding fields in res.config.settings
|
|
<record id="res_config_settings_view_form" model="ir.ui.view">
|
|
<field name="name">
|
|
res.config.settings.view.form.inherit.employee.late.check.in
|
|
</field>
|
|
<field name="model">res.config.settings</field>
|
|
<field name="inherit_id"
|
|
ref="hr_attendance.res_config_settings_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[hasclass('app_settings_block')][@data-key='hr_attendance']"
|
|
position="inside">
|
|
<h2>Late Check-in</h2>
|
|
<div class="row mt16 o_settings_container" name="late_check_in">
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<div class="o_setting_right_pane">
|
|
<label for="deduction_amount" class="o_form_label">
|
|
Deduction Amount
|
|
</label>
|
|
<span class="fa fa-lg fa-building-o"
|
|
title="Values set here are company-specific."
|
|
role="img"
|
|
aria-label="Values set here are company-specific."
|
|
groups="base.group_multi_company"/>
|
|
<div class="text-muted">
|
|
Amount to be deducted from payslip.
|
|
(If Per Minutes is chosen then for each
|
|
minute given amount is deducted,
|
|
if Per Total is chosen then given amount is
|
|
deducted from the payslip.)
|
|
</div>
|
|
<div class="mt16">
|
|
<div class="mt16 row">
|
|
<field name="deduction_amount"
|
|
widget="monetary"/>
|
|
<field name="deduction_type"/>
|
|
</div>
|
|
<br/>
|
|
<label for="late_check_in_after"
|
|
class="o_form_label">
|
|
Late Check In Starts After
|
|
</label>
|
|
<div class="text-muted">
|
|
When should the late check-in count down
|
|
starts.
|
|
</div>
|
|
<field name="late_check_in_after"/>
|
|
<span>Minutes</span>
|
|
<br/>
|
|
<br/>
|
|
<label for="maximum_minutes"
|
|
class="o_form_label">
|
|
Maximum Late Minutes
|
|
</label>
|
|
<div class="text-muted">
|
|
Specifies the maximum threshold for
|
|
recording late check-ins.
|
|
(Enter the number of minutes after which a
|
|
check-in is treated as an absence or another
|
|
type of leave,etc.
|
|
For example, if set to 100, a check-in that
|
|
is 99 minutes late will be recorded as a
|
|
late check-in, but a check-in that is 101
|
|
minutes late will not be recorded as a late
|
|
check-in.)
|
|
</div>
|
|
<field name="maximum_minutes"/>
|
|
<span>Minutes</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|