Browse Source

[FIX] doubling recipients (#106)

pull/107/head
ArtyomLosev 7 years ago
committed by Ivan Yelizariev
parent
commit
75b6aacc6a
  1. 27
      mail_to/README.rst
  2. 2
      mail_to/__openerp__.py
  3. 6
      mail_to/doc/changelog.rst
  4. 16
      mail_to/doc/index.rst
  5. 3
      mail_to/static/src/js/mail_to.js
  6. 2
      mail_to/static/src/xml/recipient.xml

27
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 <apps@it-projects.info>
Sponsors
--------
* `IT-Projects LLC <https://it-projects.info>`__
Maintainers
-----------
* `IT-Projects LLC <https://it-projects.info>`__
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: `<doc/index.rst>`_
Changelog: `<doc/changelog.rst>`_
Tested on Odoo 9.0 d3dd4161ad0598ebaa659fbd083457c77aa9448d
Tested on Odoo 10.0 ffba5c688ff74a0630f9f70be1d7760a43a7deba

2
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",

6
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`
-------

16
mail_to/doc/index.rst

@ -2,11 +2,19 @@
Show message recipients
=========================
Installation
============
* `Install <https://odoo-development.readthedocs.io/en/latest/odoo/usage/install-module.html>`__ 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.

3
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

2
mail_to/static/src/xml/recipient.xml

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<template>
<t t-extend="mail.ChatThread.Message">
<t t-jquery="p[class=o_mail_info]>span" t-operation="after">
<t t-jquery="p[class=o_mail_info] span:last" t-operation="after">
<span class="recipients_info"><t t-if="message.partner_ids">
<t t-if="message.partner_ids.length > 0">To: </t>
<t t-foreach="message.partner_ids.length" t-as="i">

Loading…
Cancel
Save