summaryrefslogtreecommitdiff
path: root/addons/hr_recruitment/wizard
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2011-09-07 20:33:28 +0200
committerOlivier Dony <odo@openerp.com>2011-09-07 20:33:28 +0200
commita3b12602ee2fffa3facc601ba103b79f2b91c1d7 (patch)
tree274da3e8b75badf1af0e9692910b5bbacdbd6287 /addons/hr_recruitment/wizard
parent7f44e2769dce460b3366d6dff3c1fea381627488 (diff)
[IMP] hr_recruitment: spellcheck, simplify mail compose wizard
bzr revid: odo@openerp.com-20110907183328-lkmn6roww23atp9e
Diffstat (limited to 'addons/hr_recruitment/wizard')
-rw-r--r--addons/hr_recruitment/wizard/__init__.py1
-rw-r--r--addons/hr_recruitment/wizard/email_compose_message.py56
2 files changed, 0 insertions, 57 deletions
diff --git a/addons/hr_recruitment/wizard/__init__.py b/addons/hr_recruitment/wizard/__init__.py
index 607db0a93b4..acabd219857 100644
--- a/addons/hr_recruitment/wizard/__init__.py
+++ b/addons/hr_recruitment/wizard/__init__.py
@@ -23,7 +23,6 @@
import hr_recruitment_phonecall
import hr_recruitment_create_partner_job
import hr_recruitment_employee_hired
-import email_compose_message
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/hr_recruitment/wizard/email_compose_message.py b/addons/hr_recruitment/wizard/email_compose_message.py
deleted file mode 100644
index b2890de02a6..00000000000
--- a/addons/hr_recruitment/wizard/email_compose_message.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2010-Today OpenERP SA (<http://www.openerp.com>)
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>
-#
-##############################################################################
-
-from osv import osv
-from osv import fields
-import tools
-
-
-class email_compose_message(osv.osv_memory):
- _inherit = 'mail.compose.message'
-
- def get_value(self, cr, uid, model, resource_id, context=None):
- '''
- To get values of the resource_id for the model
- @param model: Object
- @param resource_id: id of a record for which values to be read
-
- @return: Returns a dictionary
- '''
- if context is None:
- context = {}
- result = super(email_compose_message, self).get_value(cr, uid, model, resource_id, context=context)
- if model == 'hr.applicant' and resource_id:
- model_obj = self.pool.get(model)
- data = model_obj.browse(cr, uid , resource_id, context)
- result.update({
- 'subject' : data.name or False,
- 'email_to' : data.email_from or False,
- 'email_from' : data.user_id and data.user_id.address_id and data.user_id.address_id.email or False,
- 'body_text' : '\n' + (tools.ustr(data.user_id.signature or '')),
- 'email_cc' : tools.ustr(data.email_cc or ''),
- 'model': model,
- 'res_id': resource_id,
- })
- return result
-
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: