[IMP] hr_holidays: relabel kind of time off

The field "Kind of leave" was a bit confusing, here we re-word the
labels to make clearer what is its purpose.

closes odoo/odoo#90942

Taskid: 2693319
Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
Philippe Wauthy
2022-05-10 14:16:51 +02:00
committed by Kevin Baptiste
parent 5bf898d58a
commit c6c60fe6dc
4 changed files with 5 additions and 3 deletions
@@ -38,7 +38,7 @@ class AccrualPlanLevel(models.Model):
default='day', string=" ", required=True,
help="This field defines the unit of time after which the accrual starts.")
is_based_on_worked_time = fields.Boolean("Based on worked time",
help="Only accrue for the time worked by the employee. This is the time when the employee did not take time off.")
help="If checked, the rate will be prorated on time off type where type is set on Working Time in the configuration.")
# Accrue of
added_value = fields.Float(
+2 -2
View File
@@ -101,8 +101,8 @@ class HolidaysType(models.Model):
- No validation needed: The employee's request is automatically approved.
- Approved by Time Off Officer: The employee's request need to be manually approved by the Time Off Officer.""")
has_valid_allocation = fields.Boolean(compute='_compute_valid', search='_search_valid', help='This indicates if it is still possible to use this type of leave')
time_type = fields.Selection([('leave', 'Time Off'), ('other', 'Other')], default='leave', string="Kind of Leave",
help="Whether this should be computed as a holiday or as work time (eg: formation)")
time_type = fields.Selection([('other', 'Worked Time'), ('leave', 'Absence')], default='leave', string="Kind of Time Off",
help="The distinction between working time (ex. Attendance) and absence (ex. Training) will be used in the computation of Accrual's plan rate.")
request_unit = fields.Selection([
('day', 'Day'),
('half_day', 'Half Day'),
@@ -352,6 +352,7 @@ class TestAccrualAllocations(TestHrHolidaysCommon):
'name': 'Paid Time Off',
'requires_allocation': 'no',
'responsible_id': self.user_hrmanager_id,
'time_type': 'leave',
})
leave = self.env['hr.leave'].create({
'name': 'leave',
@@ -69,6 +69,7 @@
'invisible': [('leave_validation_type', 'in', ['no_validation', 'manager']), '|', ('requires_allocation', '=', 'no'), ('allocation_validation_type', '=', 'officer')]}"/>
<field name="request_unit" widget="radio-inline"/>
<field name="support_document" string="Allow To Join Supporting Document" />
<field name="time_type" required="1"/>
<field name="company_id" groups="base.group_multi_company"/>
</group>
<group name="allocation_validation" id="allocation_requests">