diff options
| author | Rifakat Haradwala (Open ERP) <rha@tinyerp.com> | 2011-04-21 11:04:50 +0530 |
|---|---|---|
| committer | Rifakat Haradwala (Open ERP) <rha@tinyerp.com> | 2011-04-21 11:04:50 +0530 |
| commit | b511ca0034c5de98e7ffb6959ab9abdf0b3c80da (patch) | |
| tree | 1fc0ec0b468d483cc76096eef8cecd13b38a6715 | |
| parent | 6a4cd58195e79460a68b7c17e84b2e8b9f8527a3 (diff) | |
[FIX] crm: fixed attachment problem as list
bzr revid: rha@tinyerp.com-20110421053450-2pj6x32de396uqoh
| -rw-r--r-- | addons/crm/wizard/crm_add_note.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/crm/wizard/crm_add_note.py b/addons/crm/wizard/crm_add_note.py index 84c4744b525..442ca2cc1d7 100644 --- a/addons/crm/wizard/crm_add_note.py +++ b/addons/crm/wizard/crm_add_note.py @@ -44,9 +44,9 @@ class crm_add_note(osv.osv_memory): case = case_list[0] user_obj = self.pool.get('res.users') user_name = user_obj.browse(cr, uid, [uid], context=context)[0].name - attach = [ + attach = dict( (x.name, base64.decodestring(x.binary)) for x in obj.attachment_ids - ] + ) case_pool.history(cr, uid, [case], self.pool.get('email.message').truncate_data(cr, uid, obj.body, context=context), history=False, details=obj.body, email_from=user_name, attach=attach) |
