From 7c63225df1e198abe9fab61549d2827d75abc6ac Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Sun, 6 Dec 2020 14:54:37 +0100 Subject: [PATCH 1/2] :ambulance: mail_to: error on sending bot commands fixes #317 --- mail_to/__manifest__.py | 4 ++-- mail_to/doc/changelog.rst | 5 +++++ mail_to/static/src/js/mail_to.js | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/mail_to/__manifest__.py b/mail_to/__manifest__.py index d33a9c3..3b0841a 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 MIT (https://opensource.org/licenses/MIT). @@ -8,7 +8,7 @@ "summary": """Allows you be sure, that all discussion participants were notified""", "category": "Discuss", "images": ["images/1.png"], - "version": "11.0.1.1.0", + "version": "11.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 18102bb..de0ff64 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 4fb6467..867580f 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 * License MIT (https://opensource.org/licenses/MIT). */ @@ -13,7 +13,7 @@ odoo.define("mail_to.MailTo", function(require) { var msg = make_message_super.call(this, data); msg.partner_ids = data.partner_ids; msg.channel_names = data.channel_names; - msg.recipients = data.partner_ids.concat(data.channel_names); + msg.recipients = (data.partner_ids || []).concat(data.channel_names); if (!msg.partner_ids && !msg.channel_names) { return msg; } From a73e73ac0bb157517a687c66a3e8cbc07ba55455 Mon Sep 17 00:00:00 2001 From: Denis Mudarisov Date: Tue, 8 Dec 2020 13:34:50 +0500 Subject: [PATCH 2/2] :rainbow: pre-commit run --all --- mail_base/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_base/__manifest__.py b/mail_base/__manifest__.py index be2a1bc..6a68514 100644 --- a/mail_base/__manifest__.py +++ b/mail_base/__manifest__.py @@ -6,7 +6,7 @@ "name": "Mail Base", "summary": """Makes Mail extendable""", "category": "Discuss", - "images": ['images/mail_base_image.png'], + "images": ["images/mail_base_image.png"], "version": "11.0.1.1.1", "author": "IT-Projects LLC, Pavel Romanchenko", "support": "apps@itpp.dev",