[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:
parent
4ac4fbceb7
commit
85ff345031
|
@ -53,9 +53,8 @@
|
||||||
ctx.update({'active_model': 'project.scrum.meeting', 'active_id': ref("scrum_meeting_0"), 'active_ids': [ref("scrum_meeting_0")]})
|
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)
|
vals = self.default_get(cr, uid , [], context=ctx)
|
||||||
try:
|
try:
|
||||||
new_id = self.create(cr, uid, {'email_to': 'xyz@mycompany.com', 'subject': 'test'})
|
new_id = self.create(cr, uid, {'email_from': 'test@openerp.com', '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)
|
||||||
# self.send_mail(cr, uid, [new_id], context=ctx)
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
pass
|
pass
|
||||||
-
|
-
|
||||||
|
|
Loading…
Reference in New Issue