openlabs/poweremail — pull request #30 by eLBati (2012-10-16 15:15:01+00:00)
Title: Error on Send mail Wizard

Send mail Wizard raises the following exception because 'read' method returns a list

Traceback (most recent call last):
File "/home/elbati/workspace/openerp/6.1/server/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/elbati/workspace/openerp/6.1/server/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/elbati/workspace/openerp/6.1/addons/audittrail/audittrail.py", line 495, in execute_cr
return fct_src(cr, uid, model, method, *args)
File "/home/elbati/workspace/openerp/6.1/server/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/elbati/workspace/openerp/6.1/server/openerp/addons/poweremail/send_wizard.py", line 187, in send_mail
mailid = self.save_to_mailbox(cr, uid, ids, context)
File "/home/elbati/workspace/openerp/6.1/server/openerp/addons/poweremail/send_wizard.py", line 233, in save_to_mailbox
'pem_from': tools.ustr(accounts.name) + "<" + tools.ustr(accounts.email_id) + ">",
TypeError: list indices must be integers, not str