[IMP] hr_holidays: Fix time off plural labels

Purpose
=======

The noun time off is uncountable. The plural form of time off is also time off.

closes odoo/odoo#51370

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Yannick Tivisse
2020-05-18 08:18:14 +00:00
parent 57f2dc20a1
commit 71c92e8ecb
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -542,7 +542,7 @@ class HolidaysRequest(models.Model):
]
nholidays = self.search_count(domain)
if nholidays:
raise ValidationError(_('You can not set 2 times off that overlaps on the same day for the same employee.'))
raise ValidationError(_('You can not set 2 time off that overlaps on the same day for the same employee.'))
@api.constrains('state', 'number_of_days', 'holiday_status_id')
def _check_holidays(self):
+1 -1
View File
@@ -73,7 +73,7 @@ class HolidaysType(models.Model):
company_id = fields.Many2one('res.company', string='Company', default=lambda self: self.env.company)
responsible_id = fields.Many2one('res.users', 'Responsible',
domain=lambda self: [('groups_id', 'in', self.env.ref('hr_holidays.group_hr_holidays_user').id)],
help="This user will be responsible for approving this type of times off. "
help="This user will be responsible for approving this type of time off. "
"This is only used when validation is 'hr' or 'both'",)
leave_validation_type = fields.Selection([
('no_validation', 'No Validation'),
@@ -42,7 +42,7 @@ odoo.define('hr_holidays.dashboard.view_custo', function(require) {
/**
* Render the buttons and add new button about
* times off and allocations request
* time off and allocations request
*
* @override
*/