odoo-addon-mail-gateway 16.0.1.2.0__py3-none-any.whl → 17.0.1.0.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of odoo-addon-mail-gateway might be problematic. Click here for more details.
- odoo/addons/mail_gateway/README.rst +36 -25
- odoo/addons/mail_gateway/__init__.py +0 -1
- odoo/addons/mail_gateway/__manifest__.py +6 -14
- odoo/addons/mail_gateway/controllers/discuss.py +2 -2
- odoo/addons/mail_gateway/controllers/gateway.py +3 -0
- odoo/addons/mail_gateway/hooks.py +3 -3
- odoo/addons/mail_gateway/i18n/es.po +6 -309
- odoo/addons/mail_gateway/i18n/it.po +5 -336
- odoo/addons/mail_gateway/i18n/mail_gateway.pot +149 -84
- odoo/addons/mail_gateway/models/__init__.py +4 -3
- odoo/addons/mail_gateway/models/{mail_channel.py → discuss_channel.py} +30 -8
- odoo/addons/mail_gateway/models/ir_websocket.py +1 -1
- odoo/addons/mail_gateway/models/mail_gateway.py +4 -4
- odoo/addons/mail_gateway/models/mail_gateway_abstract.py +2 -2
- odoo/addons/mail_gateway/models/mail_message.py +9 -8
- odoo/addons/mail_gateway/models/mail_notification.py +3 -3
- odoo/addons/mail_gateway/models/mail_thread.py +39 -7
- odoo/addons/mail_gateway/models/res_partner.py +10 -18
- odoo/addons/mail_gateway/models/res_users.py +0 -1
- odoo/addons/mail_gateway/models/res_users_settings.py +12 -0
- odoo/addons/mail_gateway/readme/CONTRIBUTORS.md +2 -0
- odoo/addons/mail_gateway/readme/{CREDITS.rst → CREDITS.md} +2 -1
- odoo/addons/mail_gateway/readme/DESCRIPTION.md +8 -0
- odoo/addons/mail_gateway/readme/USAGE.md +12 -0
- odoo/addons/mail_gateway/security/ir.model.access.csv +4 -2
- odoo/addons/mail_gateway/security/security.xml +9 -9
- odoo/addons/mail_gateway/static/description/index.html +39 -26
- odoo/addons/mail_gateway/static/src/components/chatter/chatter.esm.js +15 -0
- odoo/addons/mail_gateway/static/src/components/chatter/chatter.xml +36 -22
- odoo/addons/mail_gateway/static/src/components/composer/composer.esm.js +108 -0
- odoo/addons/mail_gateway/static/src/components/gateway_follower/gateway_follower.esm.js +35 -22
- odoo/addons/mail_gateway/static/src/components/gateway_follower/gateway_follower.xml +3 -5
- odoo/addons/mail_gateway/static/src/components/message/message.xml +15 -15
- odoo/addons/mail_gateway/static/src/components/message/message_patch.esm.js +67 -0
- odoo/addons/mail_gateway/static/src/components/message_notification_popover_content/message_notification_popover_content.xml +3 -7
- odoo/addons/mail_gateway/static/src/core/common/composer_model_patch.esm.js +23 -0
- odoo/addons/mail_gateway/static/src/core/common/discuss_app_model_patch.esm.js +31 -0
- odoo/addons/mail_gateway/static/src/core/common/message_actions.esm.js +23 -0
- odoo/addons/mail_gateway/static/src/core/common/message_model_patch.esm.js +21 -0
- odoo/addons/mail_gateway/static/src/core/common/notification_model_patch.esm.js +35 -0
- odoo/addons/mail_gateway/static/src/core/common/persona_model_patch.esm.js +12 -0
- odoo/addons/mail_gateway/static/src/core/common/store_service_patch.esm.js +14 -0
- odoo/addons/mail_gateway/static/src/core/common/thread_model_patch.esm.js +49 -0
- odoo/addons/mail_gateway/static/src/core/common/thread_service_patch.esm.js +19 -0
- odoo/addons/mail_gateway/static/src/core/web/discuss_app_category_model_patch.esm.js +21 -0
- odoo/addons/mail_gateway/static/src/core/web/discuss_sidebar_categories.esm.js +16 -0
- odoo/addons/mail_gateway/static/src/core/web/discuss_sidebar_category_item_patch.xml +12 -0
- odoo/addons/mail_gateway/static/src/core/web/gateway_core_web_service.esm.js +40 -0
- odoo/addons/mail_gateway/static/src/models/gateway.esm.js +21 -14
- odoo/addons/mail_gateway/static/src/models/gateway_channel.esm.js +21 -13
- odoo/addons/mail_gateway/static/src/models/gateway_follower.esm.js +24 -0
- odoo/addons/mail_gateway/views/mail_gateway.xml +4 -4
- odoo/addons/mail_gateway/views/mail_guest_views.xml +15 -0
- odoo/addons/mail_gateway/wizards/mail_compose_gateway_message.py +19 -4
- odoo/addons/mail_gateway/wizards/mail_compose_gateway_message.xml +1 -2
- odoo/addons/mail_gateway/wizards/mail_guest_manage.py +2 -3
- odoo/addons/mail_gateway/wizards/mail_guest_manage.xml +2 -2
- odoo/addons/mail_gateway/wizards/mail_message_gateway_link.py +0 -1
- odoo/addons/mail_gateway/wizards/mail_message_gateway_send.py +0 -1
- {odoo_addon_mail_gateway-16.0.1.2.0.dist-info → odoo_addon_mail_gateway-17.0.1.0.0.2.dist-info}/METADATA +43 -31
- odoo_addon_mail_gateway-17.0.1.0.0.2.dist-info/RECORD +74 -0
- {odoo_addon_mail_gateway-16.0.1.2.0.dist-info → odoo_addon_mail_gateway-17.0.1.0.0.2.dist-info}/WHEEL +1 -1
- odoo_addon_mail_gateway-17.0.1.0.0.2.dist-info/top_level.txt +1 -0
- odoo/addons/mail_gateway/readme/CONTRIBUTORS.rst +0 -2
- odoo/addons/mail_gateway/readme/DESCRIPTION.rst +0 -5
- odoo/addons/mail_gateway/readme/USAGE.rst +0 -9
- odoo/addons/mail_gateway/static/src/components/composer/composer.xml +0 -24
- odoo/addons/mail_gateway/static/src/components/discuss_sidebar/discuss_sidebar.xml +0 -17
- odoo/addons/mail_gateway/static/src/models/channel.esm.js +0 -33
- odoo/addons/mail_gateway/static/src/models/channel_member_view.esm.js +0 -39
- odoo/addons/mail_gateway/static/src/models/chatter.esm.js +0 -41
- odoo/addons/mail_gateway/static/src/models/composer.esm.js +0 -32
- odoo/addons/mail_gateway/static/src/models/composer_gateway_follower.esm.js +0 -32
- odoo/addons/mail_gateway/static/src/models/composer_view.esm.js +0 -103
- odoo/addons/mail_gateway/static/src/models/discuss.esm.js +0 -51
- odoo/addons/mail_gateway/static/src/models/discuss_sidebar_category.esm.js +0 -128
- odoo/addons/mail_gateway/static/src/models/discuss_sidebar_category_item.esm.js +0 -51
- odoo/addons/mail_gateway/static/src/models/gateway_channel_view.esm.js +0 -15
- odoo/addons/mail_gateway/static/src/models/guest.esm.js +0 -10
- odoo/addons/mail_gateway/static/src/models/message.esm.js +0 -76
- odoo/addons/mail_gateway/static/src/models/message_action.esm.js +0 -45
- odoo/addons/mail_gateway/static/src/models/message_action_list.esm.js +0 -37
- odoo/addons/mail_gateway/static/src/models/message_action_view.esm.js +0 -91
- odoo/addons/mail_gateway/static/src/models/message_view.esm.js +0 -13
- odoo/addons/mail_gateway/static/src/models/messaging_initializer.esm.js +0 -24
- odoo/addons/mail_gateway/static/src/models/notification.esm.js +0 -20
- odoo/addons/mail_gateway/static/src/models/partner.esm.js +0 -11
- odoo/addons/mail_gateway/static/src/models/thread.esm.js +0 -77
- odoo_addon_mail_gateway-16.0.1.2.0.dist-info/RECORD +0 -77
- odoo_addon_mail_gateway-16.0.1.2.0.dist-info/top_level.txt +0 -1
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
.. image:: https://odoo-community.org/readme-banner-image
|
|
2
|
+
:target: https://odoo-community.org/get-involved?utm_source=readme
|
|
3
|
+
:alt: Odoo Community Association
|
|
4
|
+
|
|
1
5
|
============
|
|
2
6
|
Mail Gateway
|
|
3
7
|
============
|
|
@@ -7,32 +11,35 @@ Mail Gateway
|
|
|
7
11
|
!! This file is generated by oca-gen-addon-readme !!
|
|
8
12
|
!! changes will be overwritten. !!
|
|
9
13
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
10
|
-
!! source digest: sha256:
|
|
14
|
+
!! source digest: sha256:090c115a21a87266ff44c47592dc84c631afe5c2d4780e17abc731f918ae6c38
|
|
11
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
16
|
|
|
13
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
14
18
|
:target: https://odoo-community.org/page/development-status
|
|
15
19
|
:alt: Beta
|
|
16
|
-
.. |badge2| image:: https://img.shields.io/badge/
|
|
20
|
+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
|
17
21
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
18
22
|
:alt: License: AGPL-3
|
|
19
23
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github
|
|
20
|
-
:target: https://github.com/OCA/social/tree/
|
|
24
|
+
:target: https://github.com/OCA/social/tree/17.0/mail_gateway
|
|
21
25
|
:alt: OCA/social
|
|
22
26
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
23
|
-
:target: https://translation.odoo-community.org/projects/social-
|
|
27
|
+
:target: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_gateway
|
|
24
28
|
:alt: Translate me on Weblate
|
|
25
29
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
26
|
-
:target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=
|
|
30
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=17.0
|
|
27
31
|
:alt: Try me on Runboat
|
|
28
32
|
|
|
29
33
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
30
34
|
|
|
31
|
-
This module will allow you to integrate an external chat system in your
|
|
32
|
-
It requires extra modules with the specific configuration
|
|
35
|
+
This module will allow you to integrate an external chat system in your
|
|
36
|
+
Odoo system. It requires extra modules with the specific configuration
|
|
37
|
+
of each chat system, like mail_gateway_telegram or
|
|
38
|
+
mail_gateway_whatsapp.
|
|
33
39
|
|
|
34
|
-
This way, a group of users can respond customers or any other set
|
|
35
|
-
|
|
40
|
+
This way, a group of users can respond customers or any other set of
|
|
41
|
+
partners within Odoo, but the messages will be sent through the external
|
|
42
|
+
chat system.
|
|
36
43
|
|
|
37
44
|
**Table of contents**
|
|
38
45
|
|
|
@@ -42,15 +49,18 @@ of partners within Odoo, but the messages will be sent through the external chat
|
|
|
42
49
|
Usage
|
|
43
50
|
=====
|
|
44
51
|
|
|
45
|
-
When external messages are received, they will be directly sent to the
|
|
46
|
-
Answering to these messages will send the answer to the
|
|
47
|
-
We can assign this messages to any record using the
|
|
48
|
-
Also, we can assign the sender to a partner using the
|
|
52
|
+
When external messages are received, they will be directly sent to the
|
|
53
|
+
discuss menu. Answering to these messages will send the answer to the
|
|
54
|
+
external contact. We can assign this messages to any record using the
|
|
55
|
+
message actions. Also, we can assign the sender to a partner using the
|
|
56
|
+
followers menu and selecting the partner.
|
|
49
57
|
|
|
50
|
-
On a standard record associated to a partner with external chat, we can
|
|
51
|
-
|
|
58
|
+
On a standard record associated to a partner with external chat, we can
|
|
59
|
+
send messages to the external contact directly selecting the methods of
|
|
60
|
+
the partner. To use this, we just need to use the
|
|
52
61
|
|
|
53
|
-
It is recomended to enable chatter notification to all users that will
|
|
62
|
+
It is recomended to enable chatter notification to all users that will
|
|
63
|
+
receive messages from gateways.
|
|
54
64
|
|
|
55
65
|
Bug Tracker
|
|
56
66
|
===========
|
|
@@ -58,7 +68,7 @@ Bug Tracker
|
|
|
58
68
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/issues>`_.
|
|
59
69
|
In case of trouble, please check there if your issue has already been reported.
|
|
60
70
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
61
|
-
`feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_gateway%0Aversion:%
|
|
71
|
+
`feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_gateway%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
62
72
|
|
|
63
73
|
Do not contact contributors directly about support or help with technical issues.
|
|
64
74
|
|
|
@@ -66,24 +76,25 @@ Credits
|
|
|
66
76
|
=======
|
|
67
77
|
|
|
68
78
|
Authors
|
|
69
|
-
|
|
79
|
+
-------
|
|
70
80
|
|
|
71
81
|
* Creu Blanca
|
|
72
82
|
* Dixmit
|
|
73
83
|
|
|
74
84
|
Contributors
|
|
75
|
-
|
|
85
|
+
------------
|
|
76
86
|
|
|
77
|
-
|
|
78
|
-
|
|
87
|
+
- Enric Tobella
|
|
88
|
+
- Olga Marco
|
|
79
89
|
|
|
80
90
|
Other credits
|
|
81
|
-
|
|
91
|
+
-------------
|
|
82
92
|
|
|
83
|
-
This work has been funded by AEOdoo (Asociación Española de Odoo -
|
|
93
|
+
This work has been funded by AEOdoo (Asociación Española de Odoo -
|
|
94
|
+
https://www.aeodoo.org)
|
|
84
95
|
|
|
85
96
|
Maintainers
|
|
86
|
-
|
|
97
|
+
-----------
|
|
87
98
|
|
|
88
99
|
This module is maintained by the OCA.
|
|
89
100
|
|
|
@@ -95,6 +106,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
|
95
106
|
mission is to support the collaborative development of Odoo features and
|
|
96
107
|
promote its widespread use.
|
|
97
108
|
|
|
98
|
-
This module is part of the `OCA/social <https://github.com/OCA/social/tree/
|
|
109
|
+
This module is part of the `OCA/social <https://github.com/OCA/social/tree/17.0/mail_gateway>`_ project on GitHub.
|
|
99
110
|
|
|
100
111
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
{
|
|
5
5
|
"name": "Mail Gateway",
|
|
6
|
-
"summary": ""
|
|
7
|
-
|
|
8
|
-
"version": "16.0.1.2.0",
|
|
6
|
+
"summary": "Base module for gateway communications",
|
|
7
|
+
"version": "17.0.1.0.0",
|
|
9
8
|
"license": "AGPL-3",
|
|
10
9
|
"author": "Creu Blanca,Dixmit,Odoo Community Association (OCA)",
|
|
11
10
|
"website": "https://github.com/OCA/social",
|
|
@@ -20,20 +19,13 @@
|
|
|
20
19
|
"security/ir.model.access.csv",
|
|
21
20
|
"views/mail_gateway.xml",
|
|
22
21
|
"views/res_partner_gateway_channel.xml",
|
|
22
|
+
"views/mail_guest_views.xml",
|
|
23
23
|
],
|
|
24
24
|
"assets": {
|
|
25
|
-
"mail.assets_messaging": [
|
|
26
|
-
"mail_gateway/static/src/models/**/*.js",
|
|
27
|
-
],
|
|
28
25
|
"web.assets_backend": [
|
|
29
|
-
"mail_gateway/static/src/components
|
|
30
|
-
"mail_gateway/static/src/
|
|
31
|
-
"mail_gateway/static/src/
|
|
32
|
-
],
|
|
33
|
-
"mail.assets_discuss_public": [
|
|
34
|
-
"mail_gateway/static/src/components/**/*.xml",
|
|
35
|
-
"mail_gateway/static/src/components/**/*.js",
|
|
36
|
-
"mail_gateway/static/src/components/**/*.scss",
|
|
26
|
+
"mail_gateway/static/src/components/**/*",
|
|
27
|
+
"mail_gateway/static/src/core/**/*",
|
|
28
|
+
"mail_gateway/static/src/models/**/*",
|
|
37
29
|
],
|
|
38
30
|
},
|
|
39
31
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Copyright 2024 Dixmit
|
|
2
2
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
|
|
3
3
|
|
|
4
|
-
from odoo.addons.mail.controllers.
|
|
4
|
+
from odoo.addons.mail.controllers.thread import ThreadController
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
class
|
|
7
|
+
class GatewayThreadController(ThreadController):
|
|
8
8
|
def _get_allowed_message_post_params(self):
|
|
9
9
|
result = super()._get_allowed_message_post_params()
|
|
10
10
|
result.add("gateway_notifications")
|
|
@@ -6,6 +6,8 @@ import logging
|
|
|
6
6
|
|
|
7
7
|
from odoo.http import Controller, request, route
|
|
8
8
|
|
|
9
|
+
from odoo.addons.mail.models.discuss.mail_guest import add_guest_to_context
|
|
10
|
+
|
|
9
11
|
_logger = logging.getLogger(__name__)
|
|
10
12
|
|
|
11
13
|
|
|
@@ -17,6 +19,7 @@ class GatewayController(Controller):
|
|
|
17
19
|
methods=["GET", "POST"],
|
|
18
20
|
csrf=False,
|
|
19
21
|
)
|
|
22
|
+
@add_guest_to_context
|
|
20
23
|
def post_update(self, usage, token, *args, **kwargs):
|
|
21
24
|
if request.httprequest.method == "GET":
|
|
22
25
|
bot_data = request.env["mail.gateway"]._get_gateway(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
def pre_init_hook(
|
|
1
|
+
def pre_init_hook(env):
|
|
2
2
|
"""
|
|
3
3
|
The objective of this hook is to speed up the installation
|
|
4
4
|
of the module on an existing Odoo instance.
|
|
@@ -6,7 +6,7 @@ def pre_init_hook(cr):
|
|
|
6
6
|
Without this script, big databases can take a long time to install this
|
|
7
7
|
module.
|
|
8
8
|
"""
|
|
9
|
-
cr.execute(
|
|
9
|
+
env.cr.execute(
|
|
10
10
|
"""ALTER TABLE mail_message
|
|
11
|
-
ADD COLUMN gateway_channel_id int"""
|
|
11
|
+
ADD COLUMN IF NOT EXISTS gateway_channel_id int"""
|
|
12
12
|
)
|