Skip to content

Commit

Permalink
[FIX] email_template: partners ids are integers, not strings
Browse files Browse the repository at this point in the history
  • Loading branch information
KangOl committed Jun 1, 2014
1 parent df0ae7e commit faace84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/email_template/email_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def send_mail(self, cr, uid, template_id, res_id, force_send=False, raise_except
partner_to = values.pop('partner_to', '')
if partner_to:
# placeholders could generate '', 3, 2 due to some empty field values
tpl_partner_ids = [pid for pid in partner_to.split(',') if pid]
tpl_partner_ids = [int(pid) for pid in partner_to.split(',') if pid]
values['recipient_ids'] += [(4, pid) for pid in self.pool['res.partner'].exists(cr, SUPERUSER_ID, tpl_partner_ids, context=context)]

attachment_ids = values.pop('attachment_ids', [])
Expand Down

0 comments on commit faace84

Please sign in to comment.