diff --git a/mail_all/README.rst b/mail_all/README.rst deleted file mode 100644 index 5643344..0000000 --- a/mail_all/README.rst +++ /dev/null @@ -1,29 +0,0 @@ -.. image:: https://itpp.dev/images/infinity-readme.png - :alt: Tested and maintained by IT Projects Labs - :target: https://itpp.dev - -.. image:: https://img.shields.io/badge/license-MIT-blue.svg - :target: https://opensource.org/licenses/MIT - :alt: License: MIT - -=================== - Show all messages -=================== - -Adds ``Discuss / All`` menu, that shows all messages accessible by current user. - -Questions? -========== - -To get an assistance on this module contact us by email :arrow_right: help@itpp.dev - -Contributors -============ -* Pavel Romanchenko - -=================== - -Odoo Apps Store: https://apps.odoo.com/apps/modules/13.0/mail_all/ - - -Tested on `Odoo 11.0 `_ diff --git a/mail_all/__init__.py b/mail_all/__init__.py deleted file mode 100644 index acb599c..0000000 --- a/mail_all/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# License MIT (https://opensource.org/licenses/MIT). diff --git a/mail_all/__manifest__.py b/mail_all/__manifest__.py deleted file mode 100644 index 3609843..0000000 --- a/mail_all/__manifest__.py +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2016-2018 Ivan Yelizariev -# Copyright 2017-2018 Artyom Losev -# Copyright 2018 Kolushov Alexandr -# License MIT (https://opensource.org/licenses/MIT). -{ - "name": "Show all messages", - "summary": """Checkout all messages where you have access""", - "category": "Discuss", - # "live_test_url": "", - "images": ["images/1.jpg"], - "version": "13.0.1.0.1", - "application": False, - "author": "IT-Projects LLC, Pavel Romanchenko", - "support": "apps@itpp.dev", - "website": "https://itpp.dev", - "license": "Other OSI approved licence", # MIT - "price": 40.00, - "currency": "EUR", - "depends": ["mail"], - "external_dependencies": {"python": [], "bin": []}, - "data": ["views/templates.xml"], - "qweb": ["static/src/xml/menu.xml"], - "demo": [], - "post_load": None, - "pre_init_hook": None, - "post_init_hook": None, - "uninstall_hook": None, - "installable": False, - "auto_install": False, -} diff --git a/mail_all/doc/changelog.rst b/mail_all/doc/changelog.rst deleted file mode 100644 index bce584d..0000000 --- a/mail_all/doc/changelog.rst +++ /dev/null @@ -1,9 +0,0 @@ -`1.0.1` -------- - -- **Fix:** Incorrect counter - -`1.0.0` -------- - -- Init version diff --git a/mail_all/doc/index.rst b/mail_all/doc/index.rst deleted file mode 100644 index 350d915..0000000 --- a/mail_all/doc/index.rst +++ /dev/null @@ -1,19 +0,0 @@ -=================== - Show all messages -=================== - -Installation -============ - -* `Install `__ this module in a usual way - -Configuration -============= - -This module does not require special configuration. - -Usage -===== - -* Open menu ``Discuss / All messages`` -* You see all messages diff --git a/mail_all/i18n/de.po b/mail_all/i18n/de.po deleted file mode 100644 index cd51191..0000000 --- a/mail_all/i18n/de.po +++ /dev/null @@ -1,70 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mail_all -# -# Translators: -# Dawid Runowski , 2019 -# -msgid "" -msgstr "" -"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" -"Last-Translator: Dawid Runowski , 2019\n" -"Language-Team: German (https://www.transifex.com/it-projects-llc/teams/76080/" -"de/)\n" -"Language: de\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/js/mail_all.js:23 -#, fuzzy, python-format -msgid "All Messages" -msgstr "Alle Nachrichten" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/xml/menu.xml:10 -#, python-format -msgid "All messages" -msgstr "Alle Nachrichten" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/js/test_mail_all.js:23 -#, python-format -msgid "Check that All Messages are opened" -msgstr "" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/js/test_mail_all.js:17 -#, python-format -msgid "Click to enter menu discuss" -msgstr "" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/js/test_mail_all.js:13 -#, python-format -msgid "Click to open app list" -msgstr "" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/xml/menu.xml:20 -#, python-format -msgid "No messages" -msgstr "Keine Nachrichten" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/js/test_mail_all.js:20 -#, fuzzy, python-format -msgid "Open All Messages" -msgstr "Alle Nachrichten" diff --git a/mail_all/i18n/es.po b/mail_all/i18n/es.po deleted file mode 100644 index 64b7605..0000000 --- a/mail_all/i18n/es.po +++ /dev/null @@ -1,69 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mail_all -# -# Translators: -# Randall Castro , 2018 -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" -"Report-Msgid-Bugs-To: \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 , 2018\n" -"Language-Team: Spanish (https://www.transifex.com/it-projects-llc/" -"teams/76080/es/)\n" -"Language: es\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/js/mail_all.js:23 -#, fuzzy, python-format -msgid "All Messages" -msgstr "Todos los mensajes" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/xml/menu.xml:10 -#, python-format -msgid "All messages" -msgstr "Todos los mensajes" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/js/test_mail_all.js:23 -#, python-format -msgid "Check that All Messages are opened" -msgstr "" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/js/test_mail_all.js:17 -#, python-format -msgid "Click to enter menu discuss" -msgstr "" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/js/test_mail_all.js:13 -#, python-format -msgid "Click to open app list" -msgstr "" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/xml/menu.xml:20 -#, python-format -msgid "No messages" -msgstr "Sin mensajes" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/js/test_mail_all.js:20 -#, fuzzy, python-format -msgid "Open All Messages" -msgstr "Todos los mensajes" diff --git a/mail_all/i18n/mail_all.pot b/mail_all/i18n/mail_all.pot deleted file mode 100644 index e97a3a3..0000000 --- a/mail_all/i18n/mail_all.pot +++ /dev/null @@ -1,64 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mail_all -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" -"Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/js/mail_all.js:23 -#, python-format -msgid "All Messages" -msgstr "" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/xml/menu.xml:10 -#, python-format -msgid "All messages" -msgstr "" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/js/test_mail_all.js:23 -#, python-format -msgid "Check that All Messages are opened" -msgstr "" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/js/test_mail_all.js:17 -#, python-format -msgid "Click to enter menu discuss" -msgstr "" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/js/test_mail_all.js:13 -#, python-format -msgid "Click to open app list" -msgstr "" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/xml/menu.xml:18 -#, python-format -msgid "No messages" -msgstr "" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/js/test_mail_all.js:20 -#, python-format -msgid "Open All Messages" -msgstr "" - diff --git a/mail_all/i18n/sl.po b/mail_all/i18n/sl.po deleted file mode 100644 index 19ab3d3..0000000 --- a/mail_all/i18n/sl.po +++ /dev/null @@ -1,35 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mail_all -# -# Translators: -# Matjaz Mozetic , 2019 -# -msgid "" -msgstr "" -"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" -"Last-Translator: Matjaz Mozetic , 2019\n" -"Language-Team: Slovenian (https://www.transifex.com/it-projects-llc/teams/76080/sl/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: sl\n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" - -#. module: mail_all -#. openerp-web -#: 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" -msgstr "Vsa sporočila" - -#. module: mail_all -#. openerp-web -#: code:addons/mail_all/static/src/xml/menu.xml:15 -#, python-format -msgid "No messages" -msgstr "Ni sporočil" diff --git a/mail_all/images/1.jpg b/mail_all/images/1.jpg deleted file mode 100644 index 0a3f655..0000000 Binary files a/mail_all/images/1.jpg and /dev/null differ diff --git a/mail_all/static/description/1.png b/mail_all/static/description/1.png deleted file mode 100644 index c5f0307..0000000 Binary files a/mail_all/static/description/1.png and /dev/null differ diff --git a/mail_all/static/description/2.png b/mail_all/static/description/2.png deleted file mode 100644 index c87e750..0000000 Binary files a/mail_all/static/description/2.png and /dev/null differ diff --git a/mail_all/static/description/icon.png b/mail_all/static/description/icon.png deleted file mode 100644 index 79f7d8f..0000000 Binary files a/mail_all/static/description/icon.png and /dev/null differ diff --git a/mail_all/static/description/index.html b/mail_all/static/description/index.html deleted file mode 100644 index 291e931..0000000 --- a/mail_all/static/description/index.html +++ /dev/null @@ -1,84 +0,0 @@ -
-
-
-

Show all messages

-

Checkout all messages where you have access

-
-
-
- -
-
-
-

- The module adds usual menu. -

-
-
-
- -
-
-
-

-This menu shows all messages. -

-
-
- -
-
-
- -
-
-
-

Need our service?

-

Contact us by email or fill out request form

- -
-
-
-
- Tested on Odoo
12.0 community -
- -
-
-
-
diff --git a/mail_all/static/src/css/mail_all.css b/mail_all/static/src/css/mail_all.css deleted file mode 100644 index 0b13d18..0000000 --- a/mail_all/static/src/css/mail_all.css +++ /dev/null @@ -1,3 +0,0 @@ -.o_channel_name.mail_all i { - margin-right: 4px; -} diff --git a/mail_all/static/src/js/mail_all.js b/mail_all/static/src/js/mail_all.js deleted file mode 100644 index ba53d92..0000000 --- a/mail_all/static/src/js/mail_all.js +++ /dev/null @@ -1,50 +0,0 @@ -/* # Copyright 2016-2018 Ivan Yelizariev - # Copyright 2017-2018 Artyom Losev - # Copyright 2018 Kolushov Alexandr - # License MIT (https://opensource.org/licenses/MIT). */ -odoo.define("mail_all.all", function(require) { - "use strict"; - - var core = require("web.core"); - var Manager = require("mail.Manager"); - var Mailbox = require("mail.model.Mailbox"); - - var _t = core._t; - - Manager.include({ - _updateMailboxesFromServer: function(data) { - this._super(data); - if ( - !_.find(this.getThreads(), function(th) { - return th.getID() === "mailbox_channel_all"; - }) - ) { - this._addMailbox({ - id: "channel_all", - name: _t("All Messages"), - mailboxCounter: 0, - }); - } - }, - - _makeMessage: function(data) { - var message = this._super(data); - message._addThread("mailbox_channel_all"); - return message; - }, - }); - - Mailbox.include({ - _getThreadDomain: function() { - if (this._id === "mailbox_channel_all") { - return []; - } - return this._super(); - }, - }); - - return { - Manager: Manager, - Mailbox: Mailbox, - }; -}); diff --git a/mail_all/static/src/js/test_mail_all.js b/mail_all/static/src/js/test_mail_all.js deleted file mode 100644 index 9426de9..0000000 --- a/mail_all/static/src/js/test_mail_all.js +++ /dev/null @@ -1,33 +0,0 @@ -/* # Copyright 2018 Kolushov Alexandr - # License MIT (https://opensource.org/licenses/MIT). */ -odoo.define("mail_all.tour", function(require) { - "use strict"; - - var tour = require("web_tour.tour"); - var core = require("web.core"); - var _t = core._t; - - var steps = [ - { - trigger: 'a.full[href="#"]', - content: _t("Click to open app list"), - position: "bottom", - }, - { - trigger: 'a.dropdown-item.o_app:contains("Discuss")', - content: _t("Click to enter menu discuss"), - position: "bottom", - }, - { - content: _t("Open All Messages"), - trigger: ".o_channel_name.mail_all", - }, - { - content: _t("Check that All Messages are opened"), - trigger: - ".o_mail_discuss_title_main.o_mail_mailbox_title_all.o_mail_discuss_item.o_active", - }, - ]; - - tour.register("tour_mail_all", {test: true, url: "/web"}, steps); -}); diff --git a/mail_all/static/src/xml/menu.xml b/mail_all/static/src/xml/menu.xml deleted file mode 100644 index e1eb7af..0000000 --- a/mail_all/static/src/xml/menu.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/mail_all/tests/__init__.py b/mail_all/tests/__init__.py deleted file mode 100644 index 46b2f57..0000000 --- a/mail_all/tests/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# License MIT (https://opensource.org/licenses/MIT). - -from . import test_js diff --git a/mail_all/tests/test_js.py b/mail_all/tests/test_js.py deleted file mode 100644 index a6f260a..0000000 --- a/mail_all/tests/test_js.py +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 2016 Ivan Yelizariev -# Copyright 2016 manawi -# Copyright 2018 Kolushov Alexandr -# License MIT (https://opensource.org/licenses/MIT). - -import odoo.tests - - -@odoo.tests.common.at_install(True) -@odoo.tests.common.post_install(True) -class TestUi(odoo.tests.HttpCase): - def test_01_mail_all(self): - # needed because tests are run before the module is marked as - # installed. In js web will only load qweb coming from modules - # that are returned by the backend in module_boot. Without - # this you end up with js, css but no qweb. - self.env["ir.module.module"].search( - [("name", "=", "mail_all")], limit=1 - ).state = "installed" - - link = "/web#action=%s" % self.ref("mail.action_discuss") - self.phantom_js( - link, - "odoo.__DEBUG__.services['web_tour.tour'].run('tour_mail_all', 1000)", - "odoo.__DEBUG__.services['web_tour.tour'].tours.tour_mail_all.ready", - login="admin", - ) diff --git a/mail_all/views/templates.xml b/mail_all/views/templates.xml deleted file mode 100644 index bc6f878..0000000 --- a/mail_all/views/templates.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - -