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.
 
 
 
 
 

40 lines
2.1 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="//app[@name='hr_attendance']" position="inside">
<block title="Late Check-in">
<setting id="deduction_amount" company_dependent="1"
help="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.)">
<field name="deduction_amount" widget="monetary"/>
<field name="deduction_type"/>
</setting>
<setting id="late_check_in_after" company_dependent="1"
help="When should the late check-in count down starts.">
<field name="late_check_in_after"/>
<span>Minutes</span>
</setting>
<setting id="maximum_minutes" company_dependent="1"
help=" 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.)
">
<field name="maximum_minutes"/>
<span>Minutes</span>
</setting>
</block>
</xpath>
</field>
</record>
</odoo>