diff --git a/mail_to/static/src/js/mail_to.js b/mail_to/static/src/js/mail_to.js index 7d7589f0..39467880 100644 --- a/mail_to/static/src/js/mail_to.js +++ b/mail_to/static/src/js/mail_to.js @@ -26,7 +26,7 @@ odoo.define("mail_to.MailTo", function(require) { // Value which define more recipients msg.more_recipients_value = 4; for (var i = 0; i < msg.recipients.length; i++) { - if (i >= msg.more_recipients_value) { + if ( (i >= msg.more_recipients_value) && !(msg.recipients[i] === undefined) ){ // Append names more_recipients += msg.recipients[i][1]; // Separate them with semicolon