odoo-addon-mail-gateway 16.0.1.3.0__py3-none-any.whl → 17.0.1.0.1__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.

Files changed (91) hide show
  1. odoo/addons/mail_gateway/README.rst +31 -24
  2. odoo/addons/mail_gateway/__init__.py +0 -1
  3. odoo/addons/mail_gateway/__manifest__.py +6 -14
  4. odoo/addons/mail_gateway/controllers/discuss.py +2 -2
  5. odoo/addons/mail_gateway/controllers/gateway.py +3 -0
  6. odoo/addons/mail_gateway/hooks.py +3 -3
  7. odoo/addons/mail_gateway/i18n/es.po +68 -406
  8. odoo/addons/mail_gateway/i18n/it.po +5 -336
  9. odoo/addons/mail_gateway/i18n/mail_gateway.pot +149 -84
  10. odoo/addons/mail_gateway/models/__init__.py +4 -3
  11. odoo/addons/mail_gateway/models/{mail_channel.py → discuss_channel.py} +30 -8
  12. odoo/addons/mail_gateway/models/ir_websocket.py +1 -1
  13. odoo/addons/mail_gateway/models/mail_gateway.py +4 -4
  14. odoo/addons/mail_gateway/models/mail_gateway_abstract.py +2 -2
  15. odoo/addons/mail_gateway/models/mail_message.py +9 -8
  16. odoo/addons/mail_gateway/models/mail_notification.py +3 -3
  17. odoo/addons/mail_gateway/models/mail_thread.py +40 -8
  18. odoo/addons/mail_gateway/models/res_partner.py +10 -18
  19. odoo/addons/mail_gateway/models/res_users.py +0 -1
  20. odoo/addons/mail_gateway/models/res_users_settings.py +12 -0
  21. odoo/addons/mail_gateway/readme/CONTRIBUTORS.md +2 -0
  22. odoo/addons/mail_gateway/readme/{CREDITS.rst → CREDITS.md} +2 -1
  23. odoo/addons/mail_gateway/readme/DESCRIPTION.md +8 -0
  24. odoo/addons/mail_gateway/readme/USAGE.md +12 -0
  25. odoo/addons/mail_gateway/security/ir.model.access.csv +4 -2
  26. odoo/addons/mail_gateway/security/security.xml +9 -9
  27. odoo/addons/mail_gateway/static/description/index.html +23 -16
  28. odoo/addons/mail_gateway/static/src/components/chatter/chatter.esm.js +15 -0
  29. odoo/addons/mail_gateway/static/src/components/chatter/chatter.xml +36 -22
  30. odoo/addons/mail_gateway/static/src/components/composer/composer.esm.js +108 -0
  31. odoo/addons/mail_gateway/static/src/components/gateway_follower/gateway_follower.esm.js +35 -22
  32. odoo/addons/mail_gateway/static/src/components/gateway_follower/gateway_follower.xml +3 -5
  33. odoo/addons/mail_gateway/static/src/components/message/message.xml +15 -15
  34. odoo/addons/mail_gateway/static/src/components/message/message_patch.esm.js +67 -0
  35. odoo/addons/mail_gateway/static/src/components/message_notification_popover_content/message_notification_popover_content.xml +3 -7
  36. odoo/addons/mail_gateway/static/src/core/common/composer_model_patch.esm.js +23 -0
  37. odoo/addons/mail_gateway/static/src/core/common/discuss_app_model_patch.esm.js +31 -0
  38. odoo/addons/mail_gateway/static/src/core/common/message_actions.esm.js +23 -0
  39. odoo/addons/mail_gateway/static/src/core/common/message_model_patch.esm.js +21 -0
  40. odoo/addons/mail_gateway/static/src/core/common/notification_model_patch.esm.js +35 -0
  41. odoo/addons/mail_gateway/static/src/core/common/persona_model_patch.esm.js +12 -0
  42. odoo/addons/mail_gateway/static/src/core/common/store_service_patch.esm.js +14 -0
  43. odoo/addons/mail_gateway/static/src/core/common/thread_model_patch.esm.js +49 -0
  44. odoo/addons/mail_gateway/static/src/core/common/thread_service_patch.esm.js +19 -0
  45. odoo/addons/mail_gateway/static/src/core/web/discuss_app_category_model_patch.esm.js +21 -0
  46. odoo/addons/mail_gateway/static/src/core/web/discuss_sidebar_categories.esm.js +16 -0
  47. odoo/addons/mail_gateway/static/src/core/web/discuss_sidebar_category_item_patch.xml +12 -0
  48. odoo/addons/mail_gateway/static/src/core/web/gateway_core_web_service.esm.js +40 -0
  49. odoo/addons/mail_gateway/static/src/models/gateway.esm.js +21 -14
  50. odoo/addons/mail_gateway/static/src/models/gateway_channel.esm.js +21 -13
  51. odoo/addons/mail_gateway/static/src/models/gateway_follower.esm.js +24 -0
  52. odoo/addons/mail_gateway/views/mail_gateway.xml +4 -4
  53. odoo/addons/mail_gateway/views/mail_guest_views.xml +15 -0
  54. odoo/addons/mail_gateway/wizards/mail_compose_gateway_message.py +19 -4
  55. odoo/addons/mail_gateway/wizards/mail_compose_gateway_message.xml +1 -2
  56. odoo/addons/mail_gateway/wizards/mail_guest_manage.py +2 -3
  57. odoo/addons/mail_gateway/wizards/mail_guest_manage.xml +2 -2
  58. odoo/addons/mail_gateway/wizards/mail_message_gateway_link.py +1 -2
  59. odoo/addons/mail_gateway/wizards/mail_message_gateway_send.py +0 -1
  60. {odoo_addon_mail_gateway-16.0.1.3.0.dist-info → odoo_addon_mail_gateway-17.0.1.0.1.dist-info}/METADATA +38 -30
  61. odoo_addon_mail_gateway-17.0.1.0.1.dist-info/RECORD +74 -0
  62. {odoo_addon_mail_gateway-16.0.1.3.0.dist-info → odoo_addon_mail_gateway-17.0.1.0.1.dist-info}/WHEEL +1 -1
  63. odoo_addon_mail_gateway-17.0.1.0.1.dist-info/top_level.txt +1 -0
  64. odoo/addons/mail_gateway/i18n/es_VE.po +0 -879
  65. odoo/addons/mail_gateway/readme/CONTRIBUTORS.rst +0 -2
  66. odoo/addons/mail_gateway/readme/DESCRIPTION.rst +0 -5
  67. odoo/addons/mail_gateway/readme/USAGE.rst +0 -9
  68. odoo/addons/mail_gateway/static/src/components/composer/composer.xml +0 -24
  69. odoo/addons/mail_gateway/static/src/components/discuss_sidebar/discuss_sidebar.xml +0 -17
  70. odoo/addons/mail_gateway/static/src/models/channel.esm.js +0 -33
  71. odoo/addons/mail_gateway/static/src/models/channel_member_view.esm.js +0 -39
  72. odoo/addons/mail_gateway/static/src/models/chatter.esm.js +0 -41
  73. odoo/addons/mail_gateway/static/src/models/composer.esm.js +0 -32
  74. odoo/addons/mail_gateway/static/src/models/composer_gateway_follower.esm.js +0 -32
  75. odoo/addons/mail_gateway/static/src/models/composer_view.esm.js +0 -103
  76. odoo/addons/mail_gateway/static/src/models/discuss.esm.js +0 -51
  77. odoo/addons/mail_gateway/static/src/models/discuss_sidebar_category.esm.js +0 -128
  78. odoo/addons/mail_gateway/static/src/models/discuss_sidebar_category_item.esm.js +0 -51
  79. odoo/addons/mail_gateway/static/src/models/gateway_channel_view.esm.js +0 -15
  80. odoo/addons/mail_gateway/static/src/models/guest.esm.js +0 -10
  81. odoo/addons/mail_gateway/static/src/models/message.esm.js +0 -76
  82. odoo/addons/mail_gateway/static/src/models/message_action.esm.js +0 -45
  83. odoo/addons/mail_gateway/static/src/models/message_action_list.esm.js +0 -37
  84. odoo/addons/mail_gateway/static/src/models/message_action_view.esm.js +0 -91
  85. odoo/addons/mail_gateway/static/src/models/message_view.esm.js +0 -13
  86. odoo/addons/mail_gateway/static/src/models/messaging_initializer.esm.js +0 -24
  87. odoo/addons/mail_gateway/static/src/models/notification.esm.js +0 -20
  88. odoo/addons/mail_gateway/static/src/models/partner.esm.js +0 -11
  89. odoo/addons/mail_gateway/static/src/models/thread.esm.js +0 -77
  90. odoo_addon_mail_gateway-16.0.1.3.0.dist-info/RECORD +0 -78
  91. odoo_addon_mail_gateway-16.0.1.3.0.dist-info/top_level.txt +0 -1
@@ -11,7 +11,7 @@ Mail Gateway
11
11
  !! This file is generated by oca-gen-addon-readme !!
12
12
  !! changes will be overwritten. !!
13
13
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14
- !! source digest: sha256:cff2294334d6db807a724770b407b9c0b280e14970058bf4415703b93038290b
14
+ !! source digest: sha256:dd9cb533ce55e29e10867b506e532d6379d7cd12fba20203d82804176c6a8dfa
15
15
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16
16
 
17
17
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -21,22 +21,25 @@ Mail Gateway
21
21
  :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
22
22
  :alt: License: AGPL-3
23
23
  .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github
24
- :target: https://github.com/OCA/social/tree/16.0/mail_gateway
24
+ :target: https://github.com/OCA/social/tree/17.0/mail_gateway
25
25
  :alt: OCA/social
26
26
  .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27
- :target: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_gateway
27
+ :target: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_gateway
28
28
  :alt: Translate me on Weblate
29
29
  .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30
- :target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=16.0
30
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=17.0
31
31
  :alt: Try me on Runboat
32
32
 
33
33
  |badge1| |badge2| |badge3| |badge4| |badge5|
34
34
 
35
- This module will allow you to integrate an external chat system in your Odoo system.
36
- It requires extra modules with the specific configuration of each chat system, like `mail_gateway_telegram` or `mail_gateway_whatsapp`.
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.
37
39
 
38
- This way, a group of users can respond customers or any other set
39
- of partners within Odoo, but the messages will be sent through the external chat system.
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.
40
43
 
41
44
  **Table of contents**
42
45
 
@@ -46,15 +49,18 @@ of partners within Odoo, but the messages will be sent through the external chat
46
49
  Usage
47
50
  =====
48
51
 
49
- When external messages are received, they will be directly sent to the discuss menu.
50
- Answering to these messages will send the answer to the external contact.
51
- We can assign this messages to any record using the message actions.
52
- Also, we can assign the sender to a partner using the followers menu and selecting the partner.
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.
53
57
 
54
- On a standard record associated to a partner with external chat, we can send messages to the external contact directly selecting the methods of the partner.
55
- To use this, we just need to use the
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
56
61
 
57
- It is recomended to enable chatter notification to all users that will receive messages from gateways.
62
+ It is recomended to enable chatter notification to all users that will
63
+ receive messages from gateways.
58
64
 
59
65
  Bug Tracker
60
66
  ===========
@@ -62,7 +68,7 @@ Bug Tracker
62
68
  Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/issues>`_.
63
69
  In case of trouble, please check there if your issue has already been reported.
64
70
  If you spotted it first, help us to smash it by providing a detailed and welcomed
65
- `feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_gateway%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
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**>`_.
66
72
 
67
73
  Do not contact contributors directly about support or help with technical issues.
68
74
 
@@ -70,24 +76,25 @@ Credits
70
76
  =======
71
77
 
72
78
  Authors
73
- ~~~~~~~
79
+ -------
74
80
 
75
81
  * Creu Blanca
76
82
  * Dixmit
77
83
 
78
84
  Contributors
79
- ~~~~~~~~~~~~
85
+ ------------
80
86
 
81
- * Enric Tobella
82
- * Olga Marco
87
+ - Enric Tobella
88
+ - Olga Marco
83
89
 
84
90
  Other credits
85
- ~~~~~~~~~~~~~
91
+ -------------
86
92
 
87
- This work has been funded by AEOdoo (Asociación Española de Odoo - https://www.aeodoo.org)
93
+ This work has been funded by AEOdoo (Asociación Española de Odoo -
94
+ https://www.aeodoo.org)
88
95
 
89
96
  Maintainers
90
- ~~~~~~~~~~~
97
+ -----------
91
98
 
92
99
  This module is maintained by the OCA.
93
100
 
@@ -99,6 +106,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
99
106
  mission is to support the collaborative development of Odoo features and
100
107
  promote its widespread use.
101
108
 
102
- This module is part of the `OCA/social <https://github.com/OCA/social/tree/16.0/mail_gateway>`_ project on GitHub.
109
+ This module is part of the `OCA/social <https://github.com/OCA/social/tree/17.0/mail_gateway>`_ project on GitHub.
103
110
 
104
111
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -1,6 +1,5 @@
1
1
  from . import controllers
2
2
  from . import models
3
3
 
4
- # from . import services
5
4
  from .hooks import pre_init_hook
6
5
  from . import wizards
@@ -3,9 +3,8 @@
3
3
 
4
4
  {
5
5
  "name": "Mail Gateway",
6
- "summary": """
7
- Set a gateway""",
8
- "version": "16.0.1.3.0",
6
+ "summary": "Base module for gateway communications",
7
+ "version": "17.0.1.0.1",
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/**/*.xml",
30
- "mail_gateway/static/src/components/**/*.js",
31
- "mail_gateway/static/src/components/**/*.scss",
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.discuss import DiscussController
4
+ from odoo.addons.mail.controllers.thread import ThreadController
5
5
 
6
6
 
7
- class GatewayDiscussController(DiscussController):
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(cr):
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
  )