Browse Source

[PORT] mail_to to 11.0

pull/125/head
ArtyomLosev 7 years ago
parent
commit
94db51e475
No known key found for this signature in database GPG Key ID: 74CDB86A4E67B3E
  1. 6
      mail_to/README.rst
  2. 4
      mail_to/__openerp__.py
  3. 5
      mail_to/doc/changelog.rst
  4. 11
      mail_to/static/src/js/mail_to.js

6
mail_to/README.rst

@ -21,12 +21,12 @@ Maintainers
Further information
===================
Demo: http://runbot.it-projects.info/demo/mail-addons/10.0
Demo: http://runbot.it-projects.info/demo/mail-addons/11.0
HTML Description: https://apps.odoo.com/apps/modules/10.0/mail_to/
HTML Description: https://apps.odoo.com/apps/modules/11.0/mail_to/
Usage instructions: `<doc/index.rst>`_
Changelog: `<doc/changelog.rst>`_
Tested on Odoo 10.0 ffba5c688ff74a0630f9f70be1d7760a43a7deba
Tested on Odoo 11.0 ecbf7aa4714479229658d14cce28fa00376ed390

4
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.1",
"version": "1.0.2",
"author": "IT-Projects LLC, Pavel Romanchenko",
"support": "apps@it-projects.info",
@ -24,6 +24,6 @@
'static/src/xml/recipient.xml',
],
"demo": [],
"installable": False,
"installable": True,
"auto_install": False,
}

5
mail_to/doc/changelog.rst

@ -1,3 +1,8 @@
`1.0.2`
-------
- **PORT:** Ported to Odoo 11.0.
`1.0.1`
-------

11
mail_to/static/src/js/mail_to.js

@ -1,16 +1,15 @@
odoo.define('mail_to.MailTo', function (require) {
"use strict";
var base_obj = require('mail_base.base');
var chat_manager = require('mail_base.base').chat_manager;
base_obj.MailTools.include({
make_message: function(data){
var msg = this._super(data);
var make_message_super = chat_manager.make_message;
chat_manager.make_message = function (data) {
var msg = make_message_super.call(this, data);
msg.partner_ids = data.partner_ids;
if (!msg.partner_ids) {
return msg;
}
var more_recipients = '';
// value which define more recipients
msg.more_recipients_value = 4;
@ -27,5 +26,5 @@ odoo.define('mail_to.MailTo', function (require) {
msg.more_recipients = more_recipients;
return msg;
}
});
return chat_manager;
});
Loading…
Cancel
Save