diff --git a/addons/hr_holidays/hr_holidays.py b/addons/hr_holidays/hr_holidays.py
index e0358efe0d9..4136abbb2f7 100644
--- a/addons/hr_holidays/hr_holidays.py
+++ b/addons/hr_holidays/hr_holidays.py
@@ -370,26 +370,26 @@ class hr_holidays(osv.osv):
def holidays_confirm_notificate(self, cr, uid, ids, context=None):
for obj in self.browse(cr, uid, ids):
self.message_post(cr, uid, [obj.id],
- _("The request has been submitted and is waiting for validation by the manager."), subtype="submitted", context=context)
+ _("The request has been submitted and is waiting for validation by the manager."), context=context)
def holidays_first_validate_notificate(self, cr, uid, ids, context=None):
for obj in self.browse(cr, uid, ids, context=context):
self.message_post(cr, uid, [obj.id],
- _("The request has been approved. A second validation is necessary and is now pending."), subtype="pending", context=context)
+ _("The request has been approved. A second validation is necessary and is now pending."), context=context)
def holidays_validate_notificate(self, cr, uid, ids, context=None):
for obj in self.browse(cr, uid, ids):
if obj.double_validation:
self.message_post(cr, uid, [obj.id],
- _("The request has been double validated. The validation process is now over."), subtype="double validated", context=context)
+ _("The request has been double validated. The validation process is now over."), context=context)
else:
self.message_post(cr, uid, [obj.id],
- _("The request has been approved. The validation process is now over."), subtype="closed", context=context)
+ _("The request has been approved. The validation process is now over."), subtype="approved", context=context)
def holidays_refuse_notificate(self, cr, uid, ids, context=None):
for obj in self.browse(cr, uid, ids):
self.message_post(cr, uid, [obj.id],
- _("The request has been refused. The validation process is now over."), subtype="cancelled", context=context)
+ _("The request has been refused. The validation process is now over."), subtype="refused", context=context)
class resource_calendar_leaves(osv.osv):
diff --git a/addons/hr_holidays/hr_holidays_data.xml b/addons/hr_holidays/hr_holidays_data.xml
index 3b927b60419..ad337b72c62 100644
--- a/addons/hr_holidays/hr_holidays_data.xml
+++ b/addons/hr_holidays/hr_holidays_data.xml
@@ -55,26 +55,12 @@ Once validated, they are visible in the employee's calendar. HR officers can def
-
- submitted
-
-
-
-
- pending
-
-
-
-
- double validated
+
+ approved
-
- closed
-
-
-
- cancelled
+
+ refused
diff --git a/addons/hr_recruitment/hr_recruitment.py b/addons/hr_recruitment/hr_recruitment.py
index 578ebde9162..99d522703d3 100644
--- a/addons/hr_recruitment/hr_recruitment.py
+++ b/addons/hr_recruitment/hr_recruitment.py
@@ -475,12 +475,12 @@ class hr_applicant(base_stage, osv.Model):
self.message_post(cr, uid, [applicant.id], body=message, subtype="closed", context=context)
else:
message = _("Applicant has been hired.")
- self.message_post(cr, uid, [applicant.id], body=message, subtype="closed", context=context)
+ self.message_post(cr, uid, [applicant.id], body=message, subtype="hired", context=context)
return True
def case_cancel_send_note(self, cr, uid, ids, context=None):
msg = 'Applicant refused.'
- return self.message_post(cr, uid, ids, body=msg, subtype="cancelled", context=context)
+ return self.message_post(cr, uid, ids, body=msg, subtype="refused", context=context)
def case_reset_send_note(self, cr, uid, ids, context=None):
message =_("Applicant has been set as new.")
diff --git a/addons/hr_recruitment/hr_recruitment_data.xml b/addons/hr_recruitment/hr_recruitment_data.xml
index a567489751a..818b5f5adef 100644
--- a/addons/hr_recruitment/hr_recruitment_data.xml
+++ b/addons/hr_recruitment/hr_recruitment_data.xml
@@ -467,12 +467,12 @@ You can automatically receive job application though an email gateway, see the H
-
- closed
+
+ hired
-
- cancelled
+
+ refused