diff --git a/mail_to/__manifest__.py b/mail_to/__manifest__.py index 9844b2e..98d0170 100644 --- a/mail_to/__manifest__.py +++ b/mail_to/__manifest__.py @@ -1,5 +1,5 @@ # Copyright 2016 x620 -# Copyright 2016 Ivan Yelizariev +# Copyright 2016,2020 Ivan Yelizariev # Copyright 2018 Ruslan Ronzhin # Copyright 2019 Artem Rafailov # License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html). @@ -8,7 +8,7 @@ "summary": """Allows you be sure, that all discussion participants were notified""", "category": "Discuss", "images": ["images/1.png"], - "version": "12.0.1.1.0", + "version": "12.0.1.1.1", "author": "IT-Projects LLC, Pavel Romanchenko", "support": "apps@itpp.dev", "website": "https://it-projects.info", diff --git a/mail_to/doc/changelog.rst b/mail_to/doc/changelog.rst index 3e341ea..a5f084c 100644 --- a/mail_to/doc/changelog.rst +++ b/mail_to/doc/changelog.rst @@ -1,3 +1,8 @@ +`1.1.1` +------- + +- **Fix**: Error on sending bot commands + `1.1.0` ------- diff --git a/mail_to/static/src/js/mail_to.js b/mail_to/static/src/js/mail_to.js index 7d7589f..c3ae242 100644 --- a/mail_to/static/src/js/mail_to.js +++ b/mail_to/static/src/js/mail_to.js @@ -1,5 +1,5 @@ /* Copyright 2016 x620 - * Copyright 2016-2017 Ivan Yelizariev + * Copyright 2016-2017,2020 Ivan Yelizariev * Copyright 2017 Artyom Losev * Copyright 2019 Artem Rafailov * Copyright 2019-2020 Eugene Molotov @@ -15,7 +15,7 @@ odoo.define("mail_to.MailTo", function(require) { msg.partner_ids = data.partner_ids; msg.channel_names = data.channel_names; msg.channel_ids = data.channel_ids; - msg.recipients = data.partner_ids.concat( + msg.recipients = (data.partner_ids || []).concat( data.channel_names ? data.channel_names : [] ); if (!msg.partner_ids && !msg.channel_names) {