projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbd20db
)
[FIX] mail: batch_size expects an integer
author
Denis Ledoux
<dle@odoo.com>
Mon, 24 Nov 2014 15:42:26 +0000
(16:42 +0100)
committer
Denis Ledoux
<dle@odoo.com>
Mon, 24 Nov 2014 15:42:26 +0000
(16:42 +0100)
addons/mail/wizard/mail_compose_message.py
patch
|
blob
|
history
diff --git
a/addons/mail/wizard/mail_compose_message.py
b/addons/mail/wizard/mail_compose_message.py
index
4e9f675
..
04decd6
100644
(file)
--- a/
addons/mail/wizard/mail_compose_message.py
+++ b/
addons/mail/wizard/mail_compose_message.py
@@
-221,7
+221,7
@@
class mail_compose_message(osv.TransientModel):
else:
res_ids = [wizard.res_id]
- batch_size = self.pool['ir.config_parameter'].get_param(cr, SUPERUSER_ID, 'mail.batch_size') or self._batch_size
+ batch_size = int(self.pool['ir.config_parameter'].get_param(cr, SUPERUSER_ID, 'mail.batch_size')) or self._batch_size
sliced_res_ids = [res_ids[i:i + batch_size] for i in range(0, len(res_ids), batch_size)]
for res_ids in sliced_res_ids: