From 37fac4c548497bd20a02e26b159fe46b5be5a2ba Mon Sep 17 00:00:00 2001
From: Dipali Tank
Date: Wed, 5 Jul 2017 14:55:05 +0530
Subject: [PATCH] [IMP] hr_holidays: relabel 'holidays' to 'leaves' as this is
the App name
---
addons/hr_holidays/models/hr_holidays.py | 12 ++++++------
addons/hr_holidays/views/hr_holidays_views.xml | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/addons/hr_holidays/models/hr_holidays.py b/addons/hr_holidays/models/hr_holidays.py
index 2061e6be1a0..59d942c2ff6 100644
--- a/addons/hr_holidays/models/hr_holidays.py
+++ b/addons/hr_holidays/models/hr_holidays.py
@@ -51,9 +51,9 @@ class HolidaysType(models.Model):
help="If the active field is set to false, it will allow you to hide the leave type without removing it.")
max_leaves = fields.Float(compute='_compute_leaves', string='Maximum Allowed',
- help='This value is given by the sum of all holidays requests with a positive value.')
+ help='This value is given by the sum of all leaves requests with a positive value.')
leaves_taken = fields.Float(compute='_compute_leaves', string='Leaves Already Taken',
- help='This value is given by the sum of all holidays requests with a negative value.')
+ help='This value is given by the sum of all leaves requests with a negative value.')
remaining_leaves = fields.Float(compute='_compute_leaves', string='Remaining Leaves',
help='Maximum Leaves Allowed - Leaves Already Taken')
virtual_remaining_leaves = fields.Float(compute='_compute_leaves', string='Virtual Remaining Leaves',
@@ -164,10 +164,10 @@ class Holidays(models.Model):
('validate1', 'Second Approval'),
('validate', 'Approved')
], string='Status', readonly=True, track_visibility='onchange', copy=False, default='confirm',
- help="The status is set to 'To Submit', when a holiday request is created." +
- "\nThe status is 'To Approve', when holiday request is confirmed by user." +
- "\nThe status is 'Refused', when holiday request is refused by manager." +
- "\nThe status is 'Approved', when holiday request is approved by manager.")
+ help="The status is set to 'To Submit', when a leave request is created." +
+ "\nThe status is 'To Approve', when leave request is confirmed by user." +
+ "\nThe status is 'Refused', when leave request is refused by manager." +
+ "\nThe status is 'Approved', when leave request is approved by manager.")
payslip_status = fields.Boolean('Reported in last payslips',
help='Green this button when the leave has been taken into account in the payslip.')
report_note = fields.Text('HR Comments')
diff --git a/addons/hr_holidays/views/hr_holidays_views.xml b/addons/hr_holidays/views/hr_holidays_views.xml
index 54d0c1a79f2..5ae5b14191e 100644
--- a/addons/hr_holidays/views/hr_holidays_views.xml
+++ b/addons/hr_holidays/views/hr_holidays_views.xml
@@ -24,7 +24,7 @@
-
+
@@ -349,7 +349,7 @@
Once you have recorded your leave request, it will be sent
to a manager for validation. Be sure to set the right leave
- type (recuperation, legal holidays, sickness) and the exact
+ type (recuperation, legal leaves, sickness) and the exact
number of open days related to your leave.