summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/wizard/mail_compose_message.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-03-30 12:52:26 +0200
committerThibault Delavallée <tde@openerp.com>2015-04-27 10:36:15 +0200
commit4b122ad41d873febe288ab1f8c6cdc078ca2a479 (patch)
tree9792fcbc0c61274ca6296e3ce6c2f67a2467b377 /addons/mass_mailing/wizard/mail_compose_message.py
parentb7f04278bd5375d6dc21a3381df91c725bb2fd44 (diff)
[MIGR] mail: migration to the new API
Diffstat (limited to 'addons/mass_mailing/wizard/mail_compose_message.py')
-rw-r--r--addons/mass_mailing/wizard/mail_compose_message.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/mass_mailing/wizard/mail_compose_message.py b/addons/mass_mailing/wizard/mail_compose_message.py
index 2990016abd0..de480f455c4 100644
--- a/addons/mass_mailing/wizard/mail_compose_message.py
+++ b/addons/mass_mailing/wizard/mail_compose_message.py
@@ -20,11 +20,13 @@ class MailComposeMessage(osv.TransientModel):
),
}
- def get_mail_values(self, cr, uid, wizard, res_ids, context=None):
+ def get_mail_values(self, cr, uid, ids, res_ids, context=None):
""" Override method that generated the mail content by creating the
mail.mail.statistics values in the o2m of mail_mail, when doing pure
email mass mailing. """
- res = super(MailComposeMessage, self).get_mail_values(cr, uid, wizard, res_ids, context=context)
+ res = super(MailComposeMessage, self).get_mail_values(cr, uid, ids, res_ids, context=context)
+ # TDE: arg was wiards, not ids - but new API -> multi with ensure_one
+ wizard = self.browse(cr, uid, ids[0], context=context)
# use only for allowed models in mass mailing
if wizard.composition_mode == 'mass_mail' and \
(wizard.mass_mailing_name or wizard.mass_mailing_id) and \