[FIX] mail.compose.message in email_template: var typo

bzr revid: tde@openerp.com-20130606130851-h5jswklvvz98enue
This commit is contained in:
Thibault Delavallée 2013-06-06 15:08:51 +02:00
parent 72f6a8c646
commit 62a03693a3
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class mail_compose_message(osv.TransientModel):
continue
new_attachment_ids = []
for attachment in wizard.attachment_ids:
if attachment in wizard.template.attachment_ids:
if attachment in wizard.template_id.attachment_ids:
new_attachment_ids.append(self.pool.get('ir.attachment').copy(cr, uid, attachment.id, {'res_model': 'mail.compose.message', 'res_id': wizard.id}, context=context))
else:
new_attachment_ids.append(attachment.id)