Browse Source

🚑 mail_to: error on sending bot commands

fixes #317
pull/320/head
Ivan Yelizariev 4 years ago
parent
commit
b49fe92d31
No known key found for this signature in database GPG Key ID: 5C35763D5E7BFD67
  1. 4
      mail_to/__manifest__.py
  2. 5
      mail_to/doc/changelog.rst
  3. 4
      mail_to/static/src/js/mail_to.js

4
mail_to/__manifest__.py

@ -1,5 +1,5 @@
# Copyright 2016 x620 <https://github.com/x620> # Copyright 2016 x620 <https://github.com/x620>
# Copyright 2016 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# Copyright 2016,2020 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# Copyright 2018 Ruslan Ronzhin # Copyright 2018 Ruslan Ronzhin
# Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/> # Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html). # 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""", "summary": """Allows you be sure, that all discussion participants were notified""",
"category": "Discuss", "category": "Discuss",
"images": ["images/1.png"], "images": ["images/1.png"],
"version": "12.0.1.1.0",
"version": "12.0.1.1.1",
"author": "IT-Projects LLC, Pavel Romanchenko", "author": "IT-Projects LLC, Pavel Romanchenko",
"support": "apps@itpp.dev", "support": "apps@itpp.dev",
"website": "https://it-projects.info", "website": "https://it-projects.info",

5
mail_to/doc/changelog.rst

@ -1,3 +1,8 @@
`1.1.1`
-------
- **Fix**: Error on sending bot commands
`1.1.0` `1.1.0`
------- -------

4
mail_to/static/src/js/mail_to.js

@ -1,5 +1,5 @@
/* Copyright 2016 x620 <https://github.com/x620> /* Copyright 2016 x620 <https://github.com/x620>
* Copyright 2016-2017 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
* Copyright 2016-2017,2020 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
* Copyright 2017 Artyom Losev <https://it-projects.info/> * Copyright 2017 Artyom Losev <https://it-projects.info/>
* Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/> * Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
* Copyright 2019-2020 Eugene Molotov <https://it-projects.info/team/em230418> * Copyright 2019-2020 Eugene Molotov <https://it-projects.info/team/em230418>
@ -15,7 +15,7 @@ odoo.define("mail_to.MailTo", function(require) {
msg.partner_ids = data.partner_ids; msg.partner_ids = data.partner_ids;
msg.channel_names = data.channel_names; msg.channel_names = data.channel_names;
msg.channel_ids = data.channel_ids; msg.channel_ids = data.channel_ids;
msg.recipients = data.partner_ids.concat(
msg.recipients = (data.partner_ids || []).concat(
data.channel_names ? data.channel_names : [] data.channel_names ? data.channel_names : []
); );
if (!msg.partner_ids && !msg.channel_names) { if (!msg.partner_ids && !msg.channel_names) {

Loading…
Cancel
Save