Browse Source

Merge pull request #321 from trojikman/11.0-mail_to-fix

commit is created by 👷‍♂️ Merge Bot: https://odoo-devops.readthedocs.io/en/latest/git/github-merge-bot.html
pull/323/head
Mitchell Admin 4 years ago
committed by GitHub
parent
commit
d5760c46d1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      mail_base/__manifest__.py
  2. 4
      mail_to/__manifest__.py
  3. 5
      mail_to/doc/changelog.rst
  4. 4
      mail_to/static/src/js/mail_to.js

2
mail_base/__manifest__.py

@ -6,7 +6,7 @@
"name": "Mail Base", "name": "Mail Base",
"summary": """Makes Mail extendable""", "summary": """Makes Mail extendable""",
"category": "Discuss", "category": "Discuss",
"images": ['images/mail_base_image.png'],
"images": ["images/mail_base_image.png"],
"version": "11.0.1.1.1", "version": "11.0.1.1.1",
"author": "IT-Projects LLC, Pavel Romanchenko", "author": "IT-Projects LLC, Pavel Romanchenko",
"support": "apps@itpp.dev", "support": "apps@itpp.dev",

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 MIT (https://opensource.org/licenses/MIT). # License MIT (https://opensource.org/licenses/MIT).
@ -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": "11.0.1.1.0",
"version": "11.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/>
* License MIT (https://opensource.org/licenses/MIT). */ * 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); var msg = make_message_super.call(this, data);
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.recipients = data.partner_ids.concat(data.channel_names);
msg.recipients = (data.partner_ids || []).concat(data.channel_names);
if (!msg.partner_ids && !msg.channel_names) { if (!msg.partner_ids && !msg.channel_names) {
return msg; return msg;
} }

Loading…
Cancel
Save