[FIX] traceback:ValueError: too many values to unpack

bzr revid: fka@tinyerp.com-20121012130000-qtd29ab755kuszsc
This commit is contained in:
Foram Katharotiya (OpenERP)
2012-10-12 18:30:00 +05:30
parent c853763491
commit 6e4eca2ba7
@@ -176,7 +176,7 @@ class survey_send_invitation(osv.osv_memory):
vals['attachment_ids'] = [(0,0,{'name': a_name,
'datas_fname': a_name,
'datas': str(a_content).encode('base64')})
for a_name, a_content in attachments]
for a_name, a_content in attachments.items()]
ans = self.pool.get('mail.mail').create(cr, uid, vals, context=context)
if ans:
res_data = {'name': partner.name or _('Unknown'),