diff --git a/mail_base/README.rst b/mail_base/README.rst index 44fc410..9313570 100644 --- a/mail_base/README.rst +++ b/mail_base/README.rst @@ -6,7 +6,7 @@ Mail Base * fixes toggling left bar * fixes Recipients field. Out-of-box this field could be empty. -One can say, that the module do this todo from `addons/mail/static/src/js/chat_manager.js `__ +One can say, that the module do this todo from `addons/mail/static/src/js/chat_manager.js `__ // to do: move this to mail.utils diff --git a/mail_base/__init__.py b/mail_base/__init__.py index c3d410e..811556a 100644 --- a/mail_base/__init__.py +++ b/mail_base/__init__.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html) from . import models from . import controllers diff --git a/mail_base/__manifest__.py b/mail_base/__manifest__.py index adf46b6..8cd75b8 100644 --- a/mail_base/__manifest__.py +++ b/mail_base/__manifest__.py @@ -1,10 +1,14 @@ # -*- coding: utf-8 -*- +# Copyright 2016 x620 +# Copyright 2018 Ruslan Ronzhin +# Copyright 2016-2019 Ivan Yelizariev +# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html) { "name": "Mail Base", "summary": """Makes Mail extendable""", "category": "Discuss", "images": [], - "version": "10.0.1.0.5", + "version": "10.0.1.1.0", "author": "IT-Projects LLC, Pavel Romanchenko", "support": "apps@it-projects.info", diff --git a/mail_base/controllers/main.py b/mail_base/controllers/main.py index 8463aed..429e6f9 100644 --- a/mail_base/controllers/main.py +++ b/mail_base/controllers/main.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# Copyright 2017 mikaelh +# Copyright 2017-2019 Ivan Yelizariev +# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html) from openerp.http import request from openerp.addons.bus.controllers.main import BusController diff --git a/mail_base/doc/changelog.rst b/mail_base/doc/changelog.rst index d1474d8..8825558 100644 --- a/mail_base/doc/changelog.rst +++ b/mail_base/doc/changelog.rst @@ -1,3 +1,7 @@ +`1.1.0` +------- +- **New**: added ability to select channels for private message sending. + `1.0.5` ------- **FIX**: polling errors on heavy server load diff --git a/mail_base/models.py b/mail_base/models.py index 953f49f..cdce453 100644 --- a/mail_base/models.py +++ b/mail_base/models.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# Copyright 2016 x620 +# Copyright 2017 Ivan Yelizariev +# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html) from openerp import api, models @@ -13,8 +16,8 @@ class MailMessage(models.Model): values['partner_ids'] = [] for triplet in values.get('needaction_partner_ids'): if triplet[0] == 6: - for id in triplet[2]: - values['partner_ids'].append((4, id, False)) + for i in triplet[2]: + values['partner_ids'].append((4, i, False)) return super(MailMessage, self).write(values) diff --git a/mail_base/static/lib/base.js b/mail_base/static/lib/base.js index ce59764..4842521 100644 --- a/mail_base/static/lib/base.js +++ b/mail_base/static/lib/base.js @@ -1,3 +1,6 @@ +/* Copyright 2017 Artyom Losev + Copyright 2019 Artem Rafailov + License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html). */ odoo.define('mail_base.base', function (require) { "use strict"; @@ -215,7 +218,7 @@ var MailComposer = composer.BasicComposer.extend({ var parsed_email = utils.parse_email(recipient[1]); if (_.indexOf(email_addresses, parsed_email[1]) === -1) { self.suggested_partners.push({ - checked: true, + checked: false, partner_id: recipient[0], full_name: recipient[1], name: parsed_email[0], @@ -1059,6 +1062,7 @@ chat_manager.post_message = function (data, options) { options = options || {}; var msg = { partner_ids: data.partner_ids, + channel_ids: data.channel_ids, body: _.str.trim(data.content), attachment_ids: data.attachment_ids };