From 6061ccda541e29c5aa15fe0261fd62d0b08262f1 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 24 Nov 2014 16:42:26 +0100 Subject: [PATCH] [FIX] mail: batch_size expects an integer --- addons/mail/wizard/mail_compose_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py index 4e9f6756987..04decd6d2bf 100644 --- 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: