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/project/wizard/project_task_close.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/project/wizard/project_task_close.py')
| -rw-r--r-- | addons/project/wizard/project_task_close.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/project/wizard/project_task_close.py b/addons/project/wizard/project_task_close.py index a0710d288b3..fddc8e46f2f 100644 --- a/addons/project/wizard/project_task_close.py +++ b/addons/project/wizard/project_task_close.py @@ -68,7 +68,7 @@ class project_task_close(osv.osv_memory): if context is None: context = {} - email_message_obj = self.pool.get('email.message') + mail_message = self.pool.get('mail.message') task_pool = self.pool.get('project.task') task_id = context.get('active_id', False) if not task_id: @@ -113,7 +113,7 @@ class project_task_close(osv.osv_memory): to_adr.append(data.manager_email) if data.partner_warn and data.partner_email: to_adr.append(data.partner_email) - mail_id = email_message_obj.schedule_with_attach(cr, uid, from_adr, to_adr, subject, tools.ustr(body), model='project.task.close', email_bcc=[from_adr]) + mail_id = mail_message.schedule_with_attach(cr, uid, from_adr, to_adr, subject, tools.ustr(body), email_bcc=[from_adr], context=context) if not mail_id: raise osv.except_osv(_('Error'), _("Couldn't send mail! Check the email ids and smtp configuration settings")) return {'type': 'ir.actions.act_window_close'} |
