Server Action cannot send multiple E-mails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP's Framework R&D |
Bug Description
Hello,
Here are the steps to reproduce this bug:
1 - Install hr_holidays module.
2 - Create new server action for 'hr.holidays' object and set action type email and set email address "object.
3 - Assign this server action to 'confirm' workflow activity in hr.holidays workflow
4- Now create allocation request If I Press confirm button then generate following error.
Traceback (most recent call last):
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.exec_
File "/home/
return wf_service.
File "/home/
res2 = instance.
File "/home/
workitem.
File "/home/
ok = _split_test(cr, workitem, activity[
File "/home/
_join_test(cr, t[0], t[1], ident, stack)
File "/home/
create(
File "/home/
process(cr, res, ident, stack=stack)
File "/home/
result = _execute(cr, workitem, activity, ident, stack)
File "/home/
res2 = wkf_expr.
File "/home/
result = obj.run(cr, ident[0], [activity[
File "/home/
msg = ir_mail_
File "/home/
msg['To'] = encode_
TypeError: sequence item 0: expected string, tuple found
The attached merges for both 6.1 and trunk does the trick.
Thanks.
Serpent Consulting Services.
Related branches
- Raphael Collet (OpenERP) (community): Approve
-
Diff: 22 lines (+4/-1)1 file modifiedopenerp/addons/base/ir/ir_actions.py (+4/-1)
- OpenERP Core Team: Pending requested
-
Diff: 22 lines (+4/-1)1 file modifiedopenerp/addons/base/ir/ir_actions.py (+4/-1)
summary: |
- Server Action cannot send multiple E-mail + Server Action cannot send multiple E-mails |
description: | updated |
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-server: | |
status: | Confirmed → Fix Committed |
Changed in openobject-server: | |
status: | Fix Committed → Fix Released |
Changed in openobject-server: | |
milestone: | none → 7.0 |
A similar problem is happening on 7.0 when a Sales Order is confirmed:
Traceback (most recent call last): addons/ mail/mail_ mail.py" , line 269, in send alternative = 'plain') server/ openerp/ addons/ base/ir/ ir_mail_ server. py", line 329, in build_email rfc2822_ address_ header( COMMASPACE. join(email_ to))
File "/opt/openerp7/
subtype_
File "/opt/openerp7/
msg['To'] = encode_
TypeError: sequence item 0: expected string, bool found
Is this related or should I open a new bug?