From 75b6aacc6a20b440d10d809accd2b26fe4099ed9 Mon Sep 17 00:00:00 2001 From: ArtyomLosev Date: Thu, 13 Jul 2017 18:37:18 +0500 Subject: [PATCH] [FIX] doubling recipients (#106) --- mail_to/README.rst | 27 ++++++++++++++++++++++++--- mail_to/__openerp__.py | 2 +- mail_to/doc/changelog.rst | 6 ++++-- mail_to/doc/index.rst | 16 ++++++++++++---- mail_to/static/src/js/mail_to.js | 3 ++- mail_to/static/src/xml/recipient.xml | 2 +- 6 files changed, 44 insertions(+), 12 deletions(-) diff --git a/mail_to/README.rst b/mail_to/README.rst index 5dfe07f..b69a51c 100644 --- a/mail_to/README.rst +++ b/mail_to/README.rst @@ -4,8 +4,29 @@ Allows you be sure, that all discussion participants were notified. Adds recipients label the right of message. +Credits +======= + +Contributors +------------ +* Pavel Romanchenko + +Sponsors +-------- +* `IT-Projects LLC `__ + +Maintainers +----------- +* `IT-Projects LLC `__ + Further information -------------------- -HTML Description: https://apps.odoo.com/apps/modules/9.0/mail_to/ +=================== +Demo: http://runbot.it-projects.info/demo/mail-addons/10.0 + +HTML Description: https://apps.odoo.com/apps/modules/10.0/mail_to/ + +Usage instructions: ``_ + +Changelog: ``_ -Tested on Odoo 9.0 d3dd4161ad0598ebaa659fbd083457c77aa9448d +Tested on Odoo 10.0 ffba5c688ff74a0630f9f70be1d7760a43a7deba diff --git a/mail_to/__openerp__.py b/mail_to/__openerp__.py index 44f55ca..5767214 100644 --- a/mail_to/__openerp__.py +++ b/mail_to/__openerp__.py @@ -4,7 +4,7 @@ "summary": """Allows you be sure, that all discussion participants were notified""", "category": "Discuss", "images": ['images/1.png'], - "version": "1.0.0", + "version": "1.0.1", "author": "IT-Projects LLC, Pavel Romanchenko", "support": "apps@it-projects.info", diff --git a/mail_to/doc/changelog.rst b/mail_to/doc/changelog.rst index 5f35720..ea27aff 100644 --- a/mail_to/doc/changelog.rst +++ b/mail_to/doc/changelog.rst @@ -1,5 +1,7 @@ -Updates -======= +`1.0.1` +------- + +- **FIX:** The problem with duplicating the names of recipients was solved. `1.0.0` ------- diff --git a/mail_to/doc/index.rst b/mail_to/doc/index.rst index 31597f2..c83b725 100644 --- a/mail_to/doc/index.rst +++ b/mail_to/doc/index.rst @@ -2,11 +2,19 @@ Show message recipients ========================= +Installation +============ + +* `Install `__ this module in a usual way + +Configuration +============= + +This module does not require special configuration. + Usage ===== -* Open Discuss menu. -* Many messages have Recipients info. -* Click Inbox left menu item, click Send mail button, set recipient and send message. This message will show recipient. -* To see the recipient's need hover the mouse over a message. +* Open ``Discuss``. +* Above messages will be shown recipients info. * For messages created before install module it will not work where the recipients are not set. There is no way to restore recipients value. diff --git a/mail_to/static/src/js/mail_to.js b/mail_to/static/src/js/mail_to.js index 502df14..bb24815 100644 --- a/mail_to/static/src/js/mail_to.js +++ b/mail_to/static/src/js/mail_to.js @@ -7,8 +7,9 @@ odoo.define('mail_to.MailTo', function (require) { make_message: function(data){ var msg = this._super(data); msg.partner_ids = data.partner_ids; - if (!msg.partner_ids) + if (!msg.partner_ids) { return msg; + } var more_recipients = ''; // value which define more recipients diff --git a/mail_to/static/src/xml/recipient.xml b/mail_to/static/src/xml/recipient.xml index e105ffe..3b5a50f 100644 --- a/mail_to/static/src/xml/recipient.xml +++ b/mail_to/static/src/xml/recipient.xml @@ -1,7 +1,7 @@