diff options
| author | Olivier Dony <odo@openerp.com> | 2011-08-22 19:16:59 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2011-08-22 19:16:59 +0200 |
| commit | 8f9f45ea948d1ffecb79601e860d522fc6686c2d (patch) | |
| tree | a789d72a67cef289e770323aaf45c158579ecc6c /addons/hr_evaluation/wizard/email_compose_message.py | |
| parent | 50507512cbaf6d0119a29943c9ca85deb4057404 (diff) | |
[IMP] all: next pass of review/renaming for new mail API
bzr revid: odo@openerp.com-20110822171659-zxho36a6n628i10q
Diffstat (limited to 'addons/hr_evaluation/wizard/email_compose_message.py')
| -rw-r--r-- | addons/hr_evaluation/wizard/email_compose_message.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/addons/hr_evaluation/wizard/email_compose_message.py b/addons/hr_evaluation/wizard/email_compose_message.py index c8e055928f6..7b4c1b69164 100644 --- a/addons/hr_evaluation/wizard/email_compose_message.py +++ b/addons/hr_evaluation/wizard/email_compose_message.py @@ -24,8 +24,8 @@ from osv import fields import tools from tools.translate import _ -class email_compose_message(osv.osv_memory): - _inherit = 'email.compose.message' +class mail_compose_message(osv.osv_memory): + _inherit = 'mail.compose.message' def get_value(self, cr, uid, model, resource_id, context=None): ''' @@ -37,7 +37,7 @@ class email_compose_message(osv.osv_memory): ''' if context is None: context = {} - result = super(email_compose_message, self).get_value(cr, uid, model, resource_id, context=context) + result = super(mail_compose_message, self).get_value(cr, uid, model, resource_id, context=context) if model == 'hr.evaluation.interview' and resource_id: model_pool = self.pool.get(model) record_data = model_pool.browse(cr, uid, resource_id, context) @@ -47,7 +47,7 @@ class email_compose_message(osv.osv_memory): 'email_from': tools.config.get('email_from',''), 'email_to': record_data.user_to_review_id.work_email or False, 'subject': _("Reminder to fill up Survey"), - 'body': msg, + 'body_text': msg, 'res_id': resource_id, 'model': model, 'email_cc': False, @@ -56,6 +56,5 @@ class email_compose_message(osv.osv_memory): }) return result -email_compose_message() # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
