Skip to content
Permalink
Browse files

Merge branch '11.0' of github.com:it-projects-llc/mail-addons into 11…

….0-e8dcf0e23f2e637b033c32ddd3ef41bce6ffb20e
  • Loading branch information...
KolushovAlexandr committed Jul 11, 2019
2 parents e8dcf0e + 07c38e8 commit e9caee7005d95b3aa0f50d7938a704b0747fe08a
Showing with 4,469 additions and 2,875 deletions.
  1. +2 −5 .travis.yml
  2. +2 −3 README.md
  3. +29 −6 mail_all/README.rst
  4. +0 −3 mail_all/__init__.py
  5. +9 −2 mail_all/__manifest__.py
  6. +0 −3 mail_all/doc/changelog.rst
  7. +10 −0 mail_all/doc/index.rst
  8. +15 −0 mail_all/i18n/de.po
  9. +4 −4 mail_all/i18n/es.po
  10. +8 −0 mail_all/i18n/mail_all.pot
  11. +11 −0 mail_all/i18n/sl.po
  12. +0 −1 mail_all/models/__init__.py
  13. +2 −0 mail_all/static/description/index.html
  14. +3 −0 mail_all/static/src/css/mail_all.css
  15. +27 −35 mail_all/static/src/js/mail_all.js
  16. +1 −1 mail_all/static/src/xml/menu.xml
  17. +0 −1 mail_all/tests/__init__.py
  18. +0 −1 mail_all/tests/test_js.py
  19. +1 −0 mail_all/views/templates.xml
  20. +32 −8 mail_archives/README.rst
  21. +0 −1 mail_archives/__init__.py
  22. +1 −2 mail_archives/__manifest__.py
  23. 0 {mail_attachment_popup → mail_archives}/doc/changelog.rst
  24. +20 −0 mail_archives/doc/index.rst
  25. +11 −0 mail_archives/i18n/de.po
  26. +5 −5 mail_archives/i18n/es.po
  27. +8 −0 mail_archives/i18n/mail_archives.pot
  28. +11 −0 mail_archives/i18n/sl.po
  29. +4 −2 mail_archives/static/description/index.html
  30. +3 −0 mail_archives/static/src/css/archives.css
  31. +44 −53 mail_archives/static/src/js/archives.js
  32. +1 −1 mail_archives/static/src/xml/menu.xml
  33. +0 −1 mail_archives/tests/__init__.py
  34. +0 −1 mail_archives/tests/test_js.py
  35. +1 −0 mail_archives/views/templates.xml
  36. +0 −35 mail_attachment_popup/README.rst
  37. 0 mail_attachment_popup/__init__.py
  38. +0 −29 mail_attachment_popup/__manifest__.py
  39. +0 −16 mail_attachment_popup/doc/index.rst
  40. +0 −28 mail_attachment_popup/i18n/de.po
  41. +0 −27 mail_attachment_popup/i18n/es.po
  42. +0 −22 mail_attachment_popup/i18n/mail_attachment_popup.pot
  43. +0 −29 mail_attachment_popup/i18n/ru.po
  44. BIN mail_attachment_popup/images/popup_image.png
  45. BIN mail_attachment_popup/static/description/attach_image.png
  46. BIN mail_attachment_popup/static/description/download.png
  47. +0 −84 mail_attachment_popup/static/description/index.html
  48. BIN mail_attachment_popup/static/description/popup.png
  49. +0 −429 mail_attachment_popup/static/lib/js/jquery.arcticmodal.js
  50. +0 −8 mail_attachment_popup/static/src/css/jquery.arcticmodal.css
  51. +0 −11 mail_attachment_popup/static/src/css/simple.css
  52. +0 −16 mail_attachment_popup/static/src/css/styles.css
  53. BIN mail_attachment_popup/static/src/img/loading.gif
  54. +0 −29 mail_attachment_popup/static/src/xml/mail_attachment_popup.xml
  55. +0 −13 mail_attachment_popup/views/mail_attachment_popup_template.xml
  56. +26 −6 mail_base/README.rst
  57. +0 −1 mail_base/__init__.py
  58. +1 −2 mail_base/__manifest__.py
  59. +0 −1 mail_base/controllers/main.py
  60. +17 −3 mail_base/doc/index.rst
  61. +16 −0 mail_base/i18n/de.po
  62. +4 −4 mail_base/i18n/es.po
  63. +4 −0 mail_base/i18n/mail_base.pot
  64. +8 −2 mail_base/i18n/pt.po
  65. +8 −2 mail_base/i18n/pt_BR.po
  66. +10 −1 mail_base/i18n/sl.po
  67. +0 −1 mail_base/models.py
  68. +1,109 −1,155 mail_base/static/lib/base.js
  69. +2 −0 mail_base/tests/__init__.py
  70. +16 −0 mail_base/tests/test_default.py
  71. +0 −1 mail_check_immediately/__init__.py
  72. +0 −1 mail_check_immediately/__manifest__.py
  73. +0 −1 mail_check_immediately/models.py
  74. +2 −0 mail_check_immediately/static/description/index.html
  75. +0 −1 mail_fix_553/__init__.py
  76. +0 −1 mail_fix_553/__manifest__.py
  77. +0 −1 mail_fix_553/mail_fix_553.py
  78. +44 −5 mail_move_message/README.rst
  79. +2 −1 mail_move_message/__init__.py
  80. +12 −4 mail_move_message/__manifest__.py
  81. +2 −1 mail_move_message/controllers/__init__.py
  82. +5 −53 mail_move_message/controllers/main.py
  83. +6 −4 mail_move_message/data/mail_move_message_data.xml
  84. +7 −1 mail_move_message/doc/changelog.rst
  85. +32 −1 mail_move_message/doc/index.rst
  86. +50 −70 mail_move_message/i18n/mail_move_message.pot
  87. +119 −89 mail_move_message/mail_move_message_models.py
  88. +55 −42 mail_move_message/mail_move_message_views.xml
  89. BIN mail_move_message/static/description/delete-message.png
  90. BIN mail_move_message/static/description/icon.png
  91. BIN mail_move_message/static/description/inbox-move.png
  92. +58 −16 mail_move_message/static/description/index.html
  93. BIN mail_move_message/static/description/record-move-back.png
  94. +93 −81 mail_move_message/static/src/js/mail_move_message.js
  95. +7 −1 mail_move_message/static/src/xml/mail_move_message_main.xml
  96. +3 −0 mail_move_message/tests/__init__.py
  97. +52 −0 mail_move_message/tests/test_mail_move.py
  98. +62 −0 mail_multi_website/README.rst
  99. +40 −0 mail_multi_website/__init__.py
  100. +51 −0 mail_multi_website/__manifest__.py
  101. +4 −0 mail_multi_website/doc/changelog.rst
  102. +73 −0 mail_multi_website/doc/index.rst
  103. +82 −0 mail_multi_website/i18n/mail_multi_website.pot
  104. BIN mail_multi_website/images/main.jpg
  105. +7 −0 mail_multi_website/models/__init__.py
  106. +20 −0 mail_multi_website/models/ir_property.py
  107. +16 −0 mail_multi_website/models/mail_message.py
  108. +151 −0 mail_multi_website/models/mail_template.py
  109. +26 −0 mail_multi_website/models/mail_thread.py
  110. +45 −0 mail_multi_website/models/res_users.py
  111. +10 −0 mail_multi_website/models/website.py
  112. BIN {mail_attachment_popup → mail_multi_website}/static/description/icon.png
  113. +97 −0 mail_multi_website/static/description/index.html
  114. +4 −0 mail_multi_website/tests/__init__.py
  115. +41 −0 mail_multi_website/tests/test_fetch.py
  116. +10 −0 mail_multi_website/tests/test_mail_model.py
  117. +114 −0 mail_multi_website/tests/test_render.py
  118. +62 −0 mail_multi_website/tests/test_send.py
  119. +14 −0 mail_multi_website/views/website_views.xml
  120. +2 −0 mail_multi_website/wizard/__init__.py
  121. +20 −0 mail_multi_website/wizard/mail_compose_message.py
  122. +24 −6 mail_private/README.rst
  123. +0 −1 mail_private/__init__.py
  124. +1 −2 mail_private/__manifest__.py
  125. +10 −0 mail_private/doc/changelog.rst
  126. +26 −2 mail_private/i18n/es.po
  127. +18 −0 mail_private/i18n/it.po
  128. +17 −0 mail_private/i18n/mail_private.pot
  129. +10 −0 mail_private/i18n/pt.po
  130. +10 −0 mail_private/i18n/pt_BR.po
  131. +104 −5 mail_private/models.py
  132. BIN mail_private/static/description/check_recipients.png
  133. +88 −33 mail_private/static/description/index.html
  134. BIN mail_private/static/description/result_message.png
  135. +134 −78 mail_private/static/src/js/mail_private.js
  136. +2 −2 mail_private/static/src/js/test_private.js
  137. +5 −5 mail_private/static/src/xml/mail_private.xml
  138. +2 −4 mail_private/template.xml
  139. +7 −1 mail_private/tests/test_js.py
  140. +0 −1 mail_recovery/__init__.py
  141. +1 −2 mail_recovery/__manifest__.py
  142. +2 −0 mail_recovery/static/description/index.html
  143. +27 −4 mail_reply/README.rst
  144. +0 −1 mail_reply/__init__.py
  145. +1 −2 mail_reply/__manifest__.py
  146. +0 −3 mail_reply/doc/changelog.rst
  147. +21 −2 mail_reply/doc/index.rst
  148. +2 −0 mail_reply/static/description/index.html
  149. +15 −10 mail_reply/static/src/js/mail_reply.js
  150. +2 −2 mail_reply/static/src/xml/reply_button.xml
  151. +2 −0 mail_reply/tests/__init__.py
  152. +39 −0 mail_reply/tests/test_default.py
  153. +33 −9 mail_sent/README.rst
  154. +0 −1 mail_sent/__init__.py
  155. +1 −2 mail_sent/__manifest__.py
  156. +11 −0 mail_sent/doc/index.rst
  157. +36 −0 mail_sent/i18n/de.po
  158. +8 −8 mail_sent/i18n/es.po
  159. +8 −0 mail_sent/i18n/mail_sent.pot
  160. +6 −6 mail_sent/i18n/pt.po
  161. +6 −6 mail_sent/i18n/pt_BR.po
  162. +15 −2 mail_sent/i18n/sl.po
  163. +1 −2 mail_sent/models.py
  164. +42 −3 mail_sent/static/description/index.html
  165. +3 −0 mail_sent/static/src/css/sent.css
  166. +35 −45 mail_sent/static/src/js/sent.js
  167. +1 −1 mail_sent/static/src/xml/menu.xml
  168. +0 −1 mail_sent/tests/__init__.py
  169. +0 −1 mail_sent/tests/test_js.py
  170. +1 −0 mail_sent/views/templates.xml
  171. +10 −3 mail_to/README.rst
  172. +0 −1 mail_to/__init__.py
  173. +1 −2 mail_to/__manifest__.py
  174. +43 −0 mail_to/i18n/de.po
  175. +3 −3 mail_to/i18n/es.po
  176. +4 −0 mail_to/i18n/mail_to.pot
  177. +43 −0 mail_to/i18n/sl.po
  178. +2 −0 mail_to/static/description/index.html
  179. +23 −24 mail_to/static/src/js/mail_to.js
  180. +1 −0 mail_to/tests/__init__.py
  181. +18 −0 mail_to/tests/test_default.py
  182. +24 −7 mailgun/README.rst
  183. +0 −1 mailgun/__init__.py
  184. +43 −10 mailgun/__manifest__.py
  185. +0 −1 mailgun/controllers/__init__.py
  186. +0 −1 mailgun/controllers/main.py
  187. +0 −14 mailgun/data/cron.xml
  188. +15 −0 mailgun/data/ir_cron_data.xml
  189. +0 −3 mailgun/doc/changelog.rst
  190. +74 −37 mailgun/doc/index.rst
  191. +7 −0 mailgun/i18n/es.po
  192. +14 −0 mailgun/i18n/mailgun.pot
  193. BIN mailgun/images/mailgun_main.png
  194. +0 −36 mailgun/models.py
  195. +2 −0 mailgun/models/__init__.py
  196. +24 −0 mailgun/models/ir_config_parameter.py
  197. +17 −0 mailgun/models/mail_thread.py
  198. BIN mailgun/static/description/icon.png
  199. +334 −0 mailgun/static/description/index.html
  200. BIN mailgun/static/description/mailgun_add_domain.png
  201. BIN mailgun/static/description/mailgun_auth_recipients.png
  202. BIN mailgun/static/description/mailgun_auth_recipients_form.png
  203. BIN mailgun/static/description/mailgun_domain_details.png
  204. BIN mailgun/static/description/mailgun_odoo_general.png
  205. BIN mailgun/static/description/mailgun_odoo_mail_alias.png
  206. BIN mailgun/static/description/mailgun_odoo_outgoing.png
  207. BIN mailgun/static/description/mailgun_odoo_partner_email.png
  208. BIN mailgun/static/description/mailgun_odoo_sys_param.png
  209. BIN mailgun/static/description/mailgun_route.png
  210. BIN mailgun/static/description/mailgun_route_form.png
  211. +0 −1 res_partner_company_messages/__init__.py
  212. +1 −2 res_partner_company_messages/__manifest__.py
  213. +0 −1 res_partner_company_messages/models.py
  214. +0 −1 res_partner_mails_count/__init__.py
  215. +1 −2 res_partner_mails_count/__manifest__.py
  216. +0 −1 res_partner_mails_count/models.py
  217. +2 −0 res_partner_mails_count/static/description/index.html
  218. +0 −1 res_partner_mails_count/tests/__init__.py
  219. +0 −1 res_partner_mails_count/tests/test_mail.py
  220. +0 −1 res_partner_mails_count/tests/test_phantom.py
@@ -1,7 +1,7 @@
language: python

python:
- "2.7"
- "3.5"

#dist: trusty
sudo: false
@@ -16,17 +16,14 @@ addons:

env:
global:
- VERSION="10.0" TESTS="0" LINT_CHECK="0" UNIT_TEST="0"
- VERSION="11.0" TESTS="0" LINT_CHECK="0" UNIT_TEST="0"
- PYLINT_ODOO_JSLINTRC="/home/travis/maintainer-quality-tools/travis/cfg/.jslintrc"

matrix:
- LINT_CHECK="1"
- TESTS="1" ODOO_REPO="odoo/odoo" MAKEPOT="1"
- TESTS="1" ODOO_REPO="OCA/OCB"

virtualenv:
system_site_packages: true

install:
- pip install anybox.testing.openerp
- git clone https://github.com/it-projects-llc/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
@@ -1,15 +1,14 @@
[![Build Status](https://travis-ci.com/it-projects-llc/mail-addons.svg?branch=10.0)](https://travis-ci.com/it-projects-llc/mail-addons)
[![Build Status](https://travis-ci.com/it-projects-llc/mail-addons.svg?branch=11.0)](https://travis-ci.com/it-projects-llc/mail-addons)

# mail-addons
Odoo (OpenERP) mail addons
Odoo mail addons

List of repositories:
---------------------

* https://github.com/it-projects-llc/misc-addons
* https://github.com/it-projects-llc/pos-addons
* https://github.com/it-projects-llc/mail-addons
* https://github.com/it-projects-llc/rental-addons
* https://github.com/it-projects-llc/access-addons
* https://github.com/it-projects-llc/website-addons
* https://github.com/it-projects-llc/l10n-addons
@@ -2,15 +2,38 @@
Show all messages
===================

Adds ``Discuss / All`` menu, that shows all messages accesable by current user
Adds ``Discuss / All`` menu, that shows all messages accesable by current user.

Credits
=======

Contributors
------------
* Pavel Romanchenko <apps@it-projects.info>

Sponsors
--------
* `IT-Projects LLC <https://it-projects.info>`__

Maintainers
-----------
* `IT-Projects LLC <https://it-projects.info>`__

To get a guaranteed support you are kindly requested to purchase the module at `odoo apps store <https://apps.odoo.com/apps/modules/11.0/mail_all/>`__.

Thank you for understanding!

`IT-Projects Team <https://www.it-projects.info/team>`__

Further information
-------------------
===================

Demo: http://runbot.it-projects.info/demo/mail_addons/11.0

HTML Description: https://apps.odoo.com/apps/modules/9.0/mail_all/
HTML Description: https://apps.odoo.com/apps/modules/11.0/mail_all/

Usage instructions: `<doc/index.rst>`__
Usage instructions: `<doc/index.rst>`_

Changelog: `<doc/changelog.rst>`__
Changelog: `<doc/changelog.rst>`_

Tested on Odoo 9.0 d3dd4161ad0598ebaa659fbd083457c77aa9448d
Tested on Odoo 11.0 ecbf7aa4714479229658d14cce28fa00376ed390
@@ -1,3 +0,0 @@
# -*- coding: utf-8 -*-

from . import models
@@ -1,10 +1,11 @@
# -*- coding: utf-8 -*-
{
"name": "Show all messages",
"summary": """Checkout all messages where you have access""",
"category": "Discuss",
# "live_test_url": "",
"images": ['images/1.jpg'],
"version": "1.0.0",
"version": "11.0.1.0.0",
"application": False,

"author": "IT-Projects LLC, Pavel Romanchenko",
"support": "apps@it-projects.info",
@@ -24,6 +25,12 @@
"static/src/xml/menu.xml",
],
"demo": [],

"post_load": None,
"pre_init_hook": None,
"post_init_hook": None,
"uninstall_hook": None,

'installable': True,
"auto_install": False,
}
@@ -1,6 +1,3 @@
Updates
=======

`1.0.0`
-------

@@ -2,6 +2,16 @@
Show all messages
===================

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
=====

@@ -7,10 +7,17 @@
#
msgid ""
msgstr ""
<<<<<<< HEAD
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-05-05 23:11+0000\n"
"PO-Revision-Date: 2017-06-23 14:31+0000\n"
=======
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-05-05 23:09+0000\n"
"PO-Revision-Date: 2018-04-21 00:05+0000\n"
>>>>>>> 07c38e8ed3d0cb51ae12335f5c2b6430e689ebe5
"Last-Translator: Dawid Runowski <dawrun@outlook.com>, 2019\n"
"Language-Team: German (https://www.transifex.com/it-projects-llc/teams/76080/"
"de/)\n"
@@ -22,7 +29,11 @@ msgstr ""

#. module: mail_all
#. openerp-web
<<<<<<< HEAD
#: code:addons/mail_all/static/src/js/mail_all.js:56
=======
#: code:addons/mail_all/static/src/js/mail_all.js:49
>>>>>>> 07c38e8ed3d0cb51ae12335f5c2b6430e689ebe5
#: code:addons/mail_all/static/src/xml/menu.xml:7
#, python-format
msgid "All messages"
@@ -33,4 +44,8 @@ msgstr "Alle Nachrichten"
#: code:addons/mail_all/static/src/xml/menu.xml:15
#, python-format
msgid "No messages"
<<<<<<< HEAD
msgstr "Alle Nachrichten"
=======
msgstr "Keine Nachrichten"
>>>>>>> 07c38e8ed3d0cb51ae12335f5c2b6430e689ebe5
@@ -6,10 +6,10 @@
# Randall Castro <rcastro@treintaycinco.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-19 16:49+0000\n"
"PO-Revision-Date: 2017-12-19 16:49+0000\n"
"POT-Creation-Date: 2018-04-21 23:07+0000\n"
"PO-Revision-Date: 2018-04-21 23:07+0000\n"
"Last-Translator: Randall Castro <rcastro@treintaycinco.com>, 2018\n"
"Language-Team: Spanish (https://www.transifex.com/it-projects-llc/"
"teams/76080/es/)\n"
@@ -21,7 +21,7 @@ msgstr ""

#. module: mail_all
#. openerp-web
#: code:addons/mail_all/static/src/js/mail_all.js:56
#: code:addons/mail_all/static/src/js/mail_all.js:49
#: code:addons/mail_all/static/src/xml/menu.xml:7
#, python-format
msgid "All messages"
@@ -4,7 +4,11 @@
#
msgid ""
msgstr ""
<<<<<<< HEAD
"Project-Id-Version: Odoo Server 10.0\n"
=======
"Project-Id-Version: Odoo Server 11.0\n"
>>>>>>> 07c38e8ed3d0cb51ae12335f5c2b6430e689ebe5
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
@@ -15,7 +19,11 @@ msgstr ""

#. module: mail_all
#. openerp-web
<<<<<<< HEAD
#: code:addons/mail_all/static/src/js/mail_all.js:56
=======
#: code:addons/mail_all/static/src/js/mail_all.js:49
>>>>>>> 07c38e8ed3d0cb51ae12335f5c2b6430e689ebe5
#: code:addons/mail_all/static/src/xml/menu.xml:7
#, python-format
msgid "All messages"
@@ -7,10 +7,17 @@
#
msgid ""
msgstr ""
<<<<<<< HEAD
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-05-05 23:11+0000\n"
"PO-Revision-Date: 2017-06-23 14:31+0000\n"
=======
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-05-05 23:09+0000\n"
"PO-Revision-Date: 2018-04-21 00:05+0000\n"
>>>>>>> 07c38e8ed3d0cb51ae12335f5c2b6430e689ebe5
"Last-Translator: Matjaz Mozetic <m.mozetic@matmoz.si>, 2019\n"
"Language-Team: Slovenian (https://www.transifex.com/it-projects-llc/"
"teams/76080/sl/)\n"
@@ -23,7 +30,11 @@ msgstr ""

#. module: mail_all
#. openerp-web
<<<<<<< HEAD
#: code:addons/mail_all/static/src/js/mail_all.js:56
=======
#: code:addons/mail_all/static/src/js/mail_all.js:49
>>>>>>> 07c38e8ed3d0cb51ae12335f5c2b6430e689ebe5
#: code:addons/mail_all/static/src/xml/menu.xml:7
#, python-format
msgid "All messages"

This file was deleted.

@@ -38,6 +38,8 @@ <h2>Need our service?</h2>
<ul>
<li><a href="mailto:apps@it-projects.info">apps@it-projects.info <i class="fa fa-envelope-o"></i></a></li>
<li><a href="https://www.it-projects.info/page/website.contactus " target="_blank">https://www.it-projects.info/page/website.contactus <i class="fa fa-list-alt"></i></a></li>
<li><a href="https://m.me/itprojectsllc" target="_blank">https://m.me/itprojectsllc <i class="fa fa-facebook-square"></i></a></li>
<li>skype@it-projects.info <i class="fa fa-skype"></i></li>
</ul>
</div>
<div class="oe_span4">
@@ -0,0 +1,3 @@
.o_channel_name.mail_all i {
margin-right: 4px;
}
@@ -1,20 +1,10 @@
odoo.define('mail_all.all', function (require) {
"use strict";

var base_obj = require('mail_base.base');

//-------------------------------------------------------------------------------
var bus = require('bus.bus').bus;
var config = require('web.config');
var chat_manager = require('mail_base.base').chat_manager;
var core = require('web.core');
var data = require('web.data');
var Model = require('web.Model');
var session = require('web.session');
var time = require('web.time');
var web_client = require('web.web_client');

var _lt = core._lt;
//-------------------------------------------------------------------------------

var ChatAction = core.action_registry.get('mail.chat.instant_messaging');
ChatAction.include({
@@ -25,41 +15,43 @@ ChatAction.include({
}
});

// Inherit class and override methods
base_obj.MailTools.include({
get_properties: function(msg){
var properties = this._super.apply(this, arguments);
properties.is_all = this.property_descr("channel_all", msg, this);
return properties;
},
// override methods
var chat_manager_super = _.clone(chat_manager);

set_channel_flags: function(data, msg){
this._super.apply(this, arguments);
msg.is_all = data.author_id != 'ODOOBOT';
return msg;
},
chat_manager.get_properties = function (msg) {
var properties = chat_manager_super.get_properties.apply(this, arguments);
properties.is_all = this.property_descr("channel_all", msg, this);
return properties;
};

get_channel_array: function(msg){
var arr = this._super.apply(this, arguments);
return arr.concat('channel_all');
},
chat_manager.set_channel_flags = function (data, msg) {
chat_manager_super.set_channel_flags.apply(this, arguments);
msg.is_all = data.author_id !== 'ODOOBOT';
return msg;
};

get_domain: function(channel){
return (channel.id === "channel_all") ? [] : this._super.apply(this, arguments);
}
});
chat_manager.get_channel_array = function (msg) {
var arr = chat_manager_super.get_channel_array.apply(this, arguments);
return arr.concat('channel_all');
};

base_obj.chat_manager.is_ready.then(function(){
chat_manager.get_domain = function (channel) {
return (channel.id === "channel_all")
? []
: chat_manager_super.get_domain.apply(this, arguments);
};


chat_manager.is_ready.then(function () {
// Add all channel
base_obj.chat_manager.mail_tools.add_channel({
chat_manager.add_channel({
id: "channel_all",
name: _lt("All messages"),
type: "static"
});

return $.when();
});

return base_obj.chat_manager;
return chat_manager;

});
@@ -3,7 +3,7 @@
<!--Inherit Sidebar and add All messages menu item after Starred -->
<t t-extend="mail.chat.Sidebar">
<t t-jquery="div[data-channel-id=channel_starred]" t-operation="after">
<div t-attf-class="o_mail_chat_channel_item #{(active_channel_id == 'channel_all') ? 'o_active': ''}" data-channel-id="channel_all">
<div t-attf-class="o_mail_chat_title_main o_mail_chat_channel_item #{(active_channel_id == 'channel_all') ? 'o_active': ''}" data-channel-id="channel_all">
<span class="o_channel_name mail_all"> <i class="fa fa-database"/> All messages </span>
</div>
</t>
@@ -1,3 +1,2 @@
# -*- coding: utf-8 -*-

from . import test_js
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import odoo.tests


@@ -5,6 +5,7 @@
name="mail_all_assets_backend"
inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/mail_all/static/src/css/mail_all.css"/>
<script src="/mail_all/static/src/js/mail_all.js" type="text/javascript"></script>
</xpath>
</template>

0 comments on commit e9caee7

Please sign in to comment.
You can’t perform that action at this time.