summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/wizard/mail_compose_message.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2013-09-17 11:42:18 +0200
committerThibault Delavallée <tde@openerp.com>2013-09-17 11:42:18 +0200
commit643996de2b1e24bfbd4faf8ef5f9cb6b71c79af5 (patch)
tree07c78d4ec4c26b7d1e1b256d50a797eacb51d5d8 /addons/mass_mailing/wizard/mail_compose_message.py
parenta2d167bd0ab00215f92e770ec436b7cc59b4e794 (diff)
[FIX] mass_mailing: fixed bouncing tracking
mail_mail now have a statistics_ids field, allowing to create statistics when creating a mail.mail. This is done in the mail composer, using classic o2m command. Mail_mail create is overrided to ipdate the statistics value (message_id) that is computed directly in the create and not accessible in the values dict. Added model and res_id on stat model, to allow message_bounce update, without havign to rely on the mail.mail existence. bzr revid: tde@openerp.com-20130917094218-7jz5mnldogzhlioh
Diffstat (limited to 'addons/mass_mailing/wizard/mail_compose_message.py')
-rw-r--r--addons/mass_mailing/wizard/mail_compose_message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mass_mailing/wizard/mail_compose_message.py b/addons/mass_mailing/wizard/mail_compose_message.py
index 6c02357c1bf..8e075eb48c6 100644
--- a/addons/mass_mailing/wizard/mail_compose_message.py
+++ b/addons/mass_mailing/wizard/mail_compose_message.py
@@ -53,5 +53,5 @@ class MailComposeMessage(osv.TransientModel):
}, context=context)
context['default_mass_mailing_id'] = mass_mailing_id
for res_id in res_ids:
- res[res_id]['track'] = True
+ res[res_id]['statistics_ids'] = [(0, 0, {'model': wizard.model, 'res_id': res_id})]
return res