From 3790daaa69cb90806110669b9a378680aafb7063 Mon Sep 17 00:00:00 2001 From: "Jiten (OpenERP)" Date: Tue, 28 Feb 2012 19:05:16 +0530 Subject: [PATCH] [IMP] Some changes in hr recruitment - Remove page of 'Communication and History', - Remove group of 'Dates' from notebook page, - Moved button of 'Send new email' on top of right side on main page, - Improved messages and notification. bzr revid: jra@tinyerp.com-20120228133516-iw1zjxhb1xjdzgaf --- addons/hr_recruitment/hr_recruitment.py | 13 ++++---- addons/hr_recruitment/hr_recruitment_view.xml | 33 ++----------------- 2 files changed, 10 insertions(+), 36 deletions(-) diff --git a/addons/hr_recruitment/hr_recruitment.py b/addons/hr_recruitment/hr_recruitment.py index cc63dd99b62..1637313a28c 100644 --- a/addons/hr_recruitment/hr_recruitment.py +++ b/addons/hr_recruitment/hr_recruitment.py @@ -392,6 +392,7 @@ class hr_applicant(crm.crm_case, osv.osv): return res def _case_open_notification(self, case, context=None): + case.message_mark_done(context) message = _("Changed Status to In Progress.") case.message_append_note('' ,message, type='notification', need_action_user_id=case.user_id.id) return True @@ -399,22 +400,22 @@ class hr_applicant(crm.crm_case, osv.osv): def _case_close_notification(self, case, context=None): case[0].message_mark_done(context) if case[0].emp_id: - message = _("Applicant is being Hired as an employee.") + message = _("Applicant is Hired and employee created.") case[0].message_append_note('' ,message, type='notification') else: - message = _("Applicant is being Hired.") + message = _("Applicant is Hired.") case[0].message_append_note('' ,message, type='notification') return True def _case_cancel_notification(self, case, context=None): case[0].message_mark_done(context=context) - message = _("Applicant Subject '%s' has been Cancelled.") % (case[0].name) + message = _("Applicant is Cancelled.") case[0].message_append_note('' ,message, type="notification") return True def _case_pending_notification(self, case, context=None): message = _("Changed Status to Pending.") - case[0].message_append_note('' ,message, type='notification', need_action_user_id=case[0].user_id.id) + case[0].message_append_note('' ,message, type='notification') return True def _case_reset_notification(self, cr, uid, ids, context=None): @@ -427,7 +428,7 @@ class hr_applicant(crm.crm_case, osv.osv): for obj in self.browse(cr, uid, ids, context=context): self.message_subscribe(cr, uid, ids, [obj.user_id.id], context=context) self.message_append_note(cr, uid, ids, _('System notification'), - _("Applicant Created."), type='notification', need_action_user_id=obj.user_id.id, context=context) + _("Applicant is Created."), type='notification', need_action_user_id=obj.user_id.id, context=context) return True @@ -517,7 +518,7 @@ class hr_applicant(crm.crm_case, osv.osv): def write(self, cr, uid, ids, vals, context=None): if 'stage_id' in vals and vals['stage_id']: stage = self.pool.get('hr.recruitment.stage').browse(cr, uid, vals['stage_id'], context=context) - text = _("Changed Stage to %s") % stage.name + text = _("Changed Stage to %s.") % stage.name self.message_append(cr, uid, ids, text, body_text=text, context=context) return super(hr_applicant,self).write(cr, uid, ids, vals, context=context) diff --git a/addons/hr_recruitment/hr_recruitment_view.xml b/addons/hr_recruitment/hr_recruitment_view.xml index 65954b20323..2faac78af8c 100644 --- a/addons/hr_recruitment/hr_recruitment_view.xml +++ b/addons/hr_recruitment/hr_recruitment_view.xml @@ -79,6 +79,9 @@