[IMP] project_scrum: re-enable email send (they are not actually sent in test mode)

bzr revid: rco@openerp.com-20111201162413-ek8ofnbd0ukwfk5g
This commit is contained in:
Raphael Collet 2011-12-01 17:24:13 +01:00
parent 4ac4fbceb7
commit 85ff345031
1 changed files with 2 additions and 3 deletions

View File

@ -53,9 +53,8 @@
ctx.update({'active_model': 'project.scrum.meeting', 'active_id': ref("scrum_meeting_0"), 'active_ids': [ref("scrum_meeting_0")]})
vals = self.default_get(cr, uid , [], context=ctx)
try:
new_id = self.create(cr, uid, {'email_to': 'xyz@mycompany.com', 'subject': 'test'})
# We don't actually send the email, since this could log an error due to config...
# self.send_mail(cr, uid, [new_id], context=ctx)
new_id = self.create(cr, uid, {'email_from': 'test@openerp.com', 'email_to': 'xyz@mycompany.com', 'subject': 'test'})
self.send_mail(cr, uid, [new_id], context=ctx)
except Exception, e:
pass
-