odoo-addon-mail-gateway 17.0.1.0.4.2__py3-none-any.whl → 17.0.1.0.5.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.
- odoo/addons/mail_gateway/README.rst +1 -1
- odoo/addons/mail_gateway/__manifest__.py +3 -1
- odoo/addons/mail_gateway/i18n/es.po +35 -22
- odoo/addons/mail_gateway/i18n/it.po +12 -2
- odoo/addons/mail_gateway/i18n/mail_gateway.pot +10 -0
- odoo/addons/mail_gateway/models/mail_message.py +26 -10
- odoo/addons/mail_gateway/static/description/index.html +1 -1
- odoo/addons/mail_gateway/views/mail_notification_views.xml +23 -0
- odoo/addons/mail_gateway/wizards/__init__.py +1 -0
- odoo/addons/mail_gateway/wizards/mail_resend_message.py +25 -0
- odoo/addons/mail_gateway/wizards/mail_resend_message_views.xml +19 -0
- {odoo_addon_mail_gateway-17.0.1.0.4.2.dist-info → odoo_addon_mail_gateway-17.0.1.0.5.1.dist-info}/METADATA +2 -2
- {odoo_addon_mail_gateway-17.0.1.0.4.2.dist-info → odoo_addon_mail_gateway-17.0.1.0.5.1.dist-info}/RECORD +15 -12
- {odoo_addon_mail_gateway-17.0.1.0.4.2.dist-info → odoo_addon_mail_gateway-17.0.1.0.5.1.dist-info}/WHEEL +0 -0
- {odoo_addon_mail_gateway-17.0.1.0.4.2.dist-info → odoo_addon_mail_gateway-17.0.1.0.5.1.dist-info}/top_level.txt +0 -0
|
@@ -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:
|
|
14
|
+
!! source digest: sha256:dfa31cc012554c87128c29ec244c03dad893b09911795fb372d317dc7bdbf645
|
|
15
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
16
|
|
|
17
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{
|
|
5
5
|
"name": "Mail Gateway",
|
|
6
6
|
"summary": "Base module for gateway communications",
|
|
7
|
-
"version": "17.0.1.0.
|
|
7
|
+
"version": "17.0.1.0.5",
|
|
8
8
|
"license": "AGPL-3",
|
|
9
9
|
"author": "Creu Blanca,Dixmit,Odoo Community Association (OCA)",
|
|
10
10
|
"website": "https://github.com/OCA/social",
|
|
@@ -15,11 +15,13 @@
|
|
|
15
15
|
"wizards/mail_message_gateway_link.xml",
|
|
16
16
|
"wizards/mail_message_gateway_send.xml",
|
|
17
17
|
"wizards/mail_guest_manage.xml",
|
|
18
|
+
"wizards/mail_resend_message_views.xml",
|
|
18
19
|
"security/security.xml",
|
|
19
20
|
"security/ir.model.access.csv",
|
|
20
21
|
"views/mail_gateway.xml",
|
|
21
22
|
"views/res_partner_gateway_channel.xml",
|
|
22
23
|
"views/mail_guest_views.xml",
|
|
24
|
+
"views/mail_notification_views.xml",
|
|
23
25
|
],
|
|
24
26
|
"assets": {
|
|
25
27
|
"web.assets_backend": [
|
|
@@ -6,35 +6,35 @@ msgid ""
|
|
|
6
6
|
msgstr ""
|
|
7
7
|
"Project-Id-Version: Odoo Server 17.0\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
|
9
|
-
"PO-Revision-Date:
|
|
10
|
-
"Last-Translator:
|
|
9
|
+
"PO-Revision-Date: 2025-10-20 05:42+0000\n"
|
|
10
|
+
"Last-Translator: Ed-Spain <eduamoros@gmail.com>\n"
|
|
11
11
|
"Language-Team: none\n"
|
|
12
12
|
"Language: es\n"
|
|
13
13
|
"MIME-Version: 1.0\n"
|
|
14
14
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
15
15
|
"Content-Transfer-Encoding: \n"
|
|
16
16
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
|
17
|
-
"X-Generator: Weblate 4
|
|
17
|
+
"X-Generator: Weblate 5.10.4\n"
|
|
18
18
|
|
|
19
19
|
#. module: mail_gateway
|
|
20
20
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__res_domain
|
|
21
21
|
msgid "Active domain"
|
|
22
|
-
msgstr ""
|
|
22
|
+
msgstr "Dominio Activo"
|
|
23
23
|
|
|
24
24
|
#. module: mail_gateway
|
|
25
25
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__email_add_signature
|
|
26
26
|
msgid "Add signature"
|
|
27
|
-
msgstr ""
|
|
27
|
+
msgstr "Añadir firma"
|
|
28
28
|
|
|
29
29
|
#. module: mail_gateway
|
|
30
30
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__partner_ids
|
|
31
31
|
msgid "Additional Contacts"
|
|
32
|
-
msgstr ""
|
|
32
|
+
msgstr "Contactos Adicionales"
|
|
33
33
|
|
|
34
34
|
#. module: mail_gateway
|
|
35
35
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__record_alias_domain_id
|
|
36
36
|
msgid "Alias Domain"
|
|
37
|
-
msgstr ""
|
|
37
|
+
msgstr "Alias del Dominio"
|
|
38
38
|
|
|
39
39
|
#. module: mail_gateway
|
|
40
40
|
#: model:ir.model.fields,field_description:mail_gateway.field_discuss_channel__anonymous_name
|
|
@@ -44,17 +44,17 @@ msgstr "Nombre anónimo"
|
|
|
44
44
|
#. module: mail_gateway
|
|
45
45
|
#: model:ir.model,name:mail_gateway.model_mail_guest_manage
|
|
46
46
|
msgid "Assign gateway guest to a partner"
|
|
47
|
-
msgstr ""
|
|
47
|
+
msgstr "Asignar un gateway invitado a un contacto"
|
|
48
48
|
|
|
49
49
|
#. module: mail_gateway
|
|
50
50
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__attachment_ids
|
|
51
51
|
msgid "Attachments"
|
|
52
|
-
msgstr ""
|
|
52
|
+
msgstr "Adjunto"
|
|
53
53
|
|
|
54
54
|
#. module: mail_gateway
|
|
55
55
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__author_id
|
|
56
56
|
msgid "Author"
|
|
57
|
-
msgstr ""
|
|
57
|
+
msgstr "Autor"
|
|
58
58
|
|
|
59
59
|
#. module: mail_gateway
|
|
60
60
|
#: model:ir.model.fields,help:mail_gateway.field_mail_compose_gateway_message__author_id
|
|
@@ -62,11 +62,14 @@ msgid ""
|
|
|
62
62
|
"Author of the message. If not set, email_from may hold an email address that "
|
|
63
63
|
"did not match any partner."
|
|
64
64
|
msgstr ""
|
|
65
|
+
"Autor del mensaje. Si no está definido, la direcciómn email que lo ha "
|
|
66
|
+
"enviado, debe contener una dirección de email que no coincide con la de "
|
|
67
|
+
"ningún contacto."
|
|
65
68
|
|
|
66
69
|
#. module: mail_gateway
|
|
67
70
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__composition_batch
|
|
68
71
|
msgid "Batch composition"
|
|
69
|
-
msgstr ""
|
|
72
|
+
msgstr "Composición del Lote"
|
|
70
73
|
|
|
71
74
|
#. module: mail_gateway
|
|
72
75
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__partner_bcc_ids
|
|
@@ -76,17 +79,17 @@ msgstr ""
|
|
|
76
79
|
#. module: mail_gateway
|
|
77
80
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__body_has_template_value
|
|
78
81
|
msgid "Body content is the same as the template"
|
|
79
|
-
msgstr ""
|
|
82
|
+
msgstr "Contenido del cuerpo del mensaje es el mismo que el de la plantilla"
|
|
80
83
|
|
|
81
84
|
#. module: mail_gateway
|
|
82
85
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__can_attach_attachment
|
|
83
86
|
msgid "Can Attach Attachment"
|
|
84
|
-
msgstr ""
|
|
87
|
+
msgstr "Puede Añadir un Adjunto"
|
|
85
88
|
|
|
86
89
|
#. module: mail_gateway
|
|
87
90
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__can_edit_body
|
|
88
91
|
msgid "Can Edit Body"
|
|
89
|
-
msgstr ""
|
|
92
|
+
msgstr "Puede Editar el Cuerpo"
|
|
90
93
|
|
|
91
94
|
#. module: mail_gateway
|
|
92
95
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_gateway__can_set_webhook
|
|
@@ -103,7 +106,7 @@ msgstr "Cancelar"
|
|
|
103
106
|
#. module: mail_gateway
|
|
104
107
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__partner_cc_ids
|
|
105
108
|
msgid "Cc"
|
|
106
|
-
msgstr ""
|
|
109
|
+
msgstr "CC (Con Copia )"
|
|
107
110
|
|
|
108
111
|
#. module: mail_gateway
|
|
109
112
|
#: model:ir.model.fields,field_description:mail_gateway.field_discuss_channel__channel_type
|
|
@@ -123,7 +126,7 @@ msgstr ""
|
|
|
123
126
|
#. module: mail_gateway
|
|
124
127
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__use_exclusion_list
|
|
125
128
|
msgid "Check Exclusion List"
|
|
126
|
-
msgstr ""
|
|
129
|
+
msgstr "Comprobar la lista de Exclusión"
|
|
127
130
|
|
|
128
131
|
#. module: mail_gateway
|
|
129
132
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_mail__gateway_message_ids
|
|
@@ -147,7 +150,7 @@ msgstr ""
|
|
|
147
150
|
#. module: mail_gateway
|
|
148
151
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__reply_to_force_new
|
|
149
152
|
msgid "Considers answers as new thread"
|
|
150
|
-
msgstr ""
|
|
153
|
+
msgstr "Considerar Respuestar como nuevos Asuntos"
|
|
151
154
|
|
|
152
155
|
#. module: mail_gateway
|
|
153
156
|
#: model:ir.model,name:mail_gateway.model_res_partner
|
|
@@ -157,7 +160,7 @@ msgstr "Contacto"
|
|
|
157
160
|
#. module: mail_gateway
|
|
158
161
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__body
|
|
159
162
|
msgid "Contents"
|
|
160
|
-
msgstr ""
|
|
163
|
+
msgstr "Contenidos"
|
|
161
164
|
|
|
162
165
|
#. module: mail_gateway
|
|
163
166
|
#: model_terms:ir.ui.view,arch_db:mail_gateway.mail_guest_manage_form_view
|
|
@@ -169,7 +172,7 @@ msgstr "Crear una nueva empresa"
|
|
|
169
172
|
#: code:addons/mail_gateway/static/src/components/message/message_patch.esm.js:0
|
|
170
173
|
#, python-format
|
|
171
174
|
msgid "Create partner"
|
|
172
|
-
msgstr ""
|
|
175
|
+
msgstr "Crear Contacto"
|
|
173
176
|
|
|
174
177
|
#. module: mail_gateway
|
|
175
178
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__create_uid
|
|
@@ -194,7 +197,7 @@ msgstr "Creado el"
|
|
|
194
197
|
#. module: mail_gateway
|
|
195
198
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__auto_delete
|
|
196
199
|
msgid "Delete Emails"
|
|
197
|
-
msgstr ""
|
|
200
|
+
msgstr "Borrar Emails"
|
|
198
201
|
|
|
199
202
|
#. module: mail_gateway
|
|
200
203
|
#: model:ir.model,name:mail_gateway.model_discuss_channel
|
|
@@ -214,12 +217,12 @@ msgstr "Mostrar Nombre"
|
|
|
214
217
|
#. module: mail_gateway
|
|
215
218
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__display_object_attachment_ids
|
|
216
219
|
msgid "Display Object Attachment"
|
|
217
|
-
msgstr ""
|
|
220
|
+
msgstr "Mostar Objetos Adjuntos"
|
|
218
221
|
|
|
219
222
|
#. module: mail_gateway
|
|
220
223
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__email_layout_xmlid
|
|
221
224
|
msgid "Email Notification Layout"
|
|
222
|
-
msgstr ""
|
|
225
|
+
msgstr "Esquema de Notificación de Email"
|
|
223
226
|
|
|
224
227
|
#. module: mail_gateway
|
|
225
228
|
#: model:ir.model,name:mail_gateway.model_mail_thread
|
|
@@ -233,6 +236,11 @@ msgid ""
|
|
|
233
236
|
"found and replaces the author_id field in the chatter."
|
|
234
237
|
msgstr ""
|
|
235
238
|
|
|
239
|
+
#. module: mail_gateway
|
|
240
|
+
#: model:ir.model,name:mail_gateway.model_mail_resend_message
|
|
241
|
+
msgid "Email resend wizard"
|
|
242
|
+
msgstr ""
|
|
243
|
+
|
|
236
244
|
#. module: mail_gateway
|
|
237
245
|
#: model:ir.model.fields,help:mail_gateway.field_mail_notification__gateway_failure_reason
|
|
238
246
|
msgid ""
|
|
@@ -308,6 +316,11 @@ msgstr ""
|
|
|
308
316
|
msgid "Gateway Notification"
|
|
309
317
|
msgstr ""
|
|
310
318
|
|
|
319
|
+
#. module: mail_gateway
|
|
320
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_resend_message__gateway_notification_ids
|
|
321
|
+
msgid "Gateway Notifications"
|
|
322
|
+
msgstr ""
|
|
323
|
+
|
|
311
324
|
#. module: mail_gateway
|
|
312
325
|
#: model:ir.actions.act_window,name:mail_gateway.res_partner_gateway_channel_act_window
|
|
313
326
|
#: model:ir.ui.menu,name:mail_gateway.res_partner_gateway_channel_menu
|
|
@@ -238,6 +238,11 @@ msgstr ""
|
|
|
238
238
|
"trovato un partner corrispondente e sostituisce il campo author_id "
|
|
239
239
|
"nell'elenco comunicazioni."
|
|
240
240
|
|
|
241
|
+
#. module: mail_gateway
|
|
242
|
+
#: model:ir.model,name:mail_gateway.model_mail_resend_message
|
|
243
|
+
msgid "Email resend wizard"
|
|
244
|
+
msgstr ""
|
|
245
|
+
|
|
241
246
|
#. module: mail_gateway
|
|
242
247
|
#: model:ir.model.fields,help:mail_gateway.field_mail_notification__gateway_failure_reason
|
|
243
248
|
msgid ""
|
|
@@ -312,6 +317,11 @@ msgstr "Messaggio gateway"
|
|
|
312
317
|
msgid "Gateway Notification"
|
|
313
318
|
msgstr "Notifica gateway"
|
|
314
319
|
|
|
320
|
+
#. module: mail_gateway
|
|
321
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_resend_message__gateway_notification_ids
|
|
322
|
+
msgid "Gateway Notifications"
|
|
323
|
+
msgstr ""
|
|
324
|
+
|
|
315
325
|
#. module: mail_gateway
|
|
316
326
|
#: model:ir.actions.act_window,name:mail_gateway.res_partner_gateway_channel_act_window
|
|
317
327
|
#: model:ir.ui.menu,name:mail_gateway.res_partner_gateway_channel_menu
|
|
@@ -436,8 +446,8 @@ msgstr "Mantieni copia messaggio"
|
|
|
436
446
|
msgid ""
|
|
437
447
|
"Keep a copy of the email content if emails are removed (mass mailing only)"
|
|
438
448
|
msgstr ""
|
|
439
|
-
"Conservare una copia del contenuto dell'e-mail se le e-mail vengono rimosse
|
|
440
|
-
"solo per l'invio di massa)"
|
|
449
|
+
"Conservare una copia del contenuto dell'e-mail se le e-mail vengono rimosse "
|
|
450
|
+
"(solo per l'invio di massa)"
|
|
441
451
|
|
|
442
452
|
#. module: mail_gateway
|
|
443
453
|
#: model:ir.model.fields,help:mail_gateway.field_discuss_channel__gateway_token
|
|
@@ -227,6 +227,11 @@ msgid ""
|
|
|
227
227
|
"found and replaces the author_id field in the chatter."
|
|
228
228
|
msgstr ""
|
|
229
229
|
|
|
230
|
+
#. module: mail_gateway
|
|
231
|
+
#: model:ir.model,name:mail_gateway.model_mail_resend_message
|
|
232
|
+
msgid "Email resend wizard"
|
|
233
|
+
msgstr ""
|
|
234
|
+
|
|
230
235
|
#. module: mail_gateway
|
|
231
236
|
#: model:ir.model.fields,help:mail_gateway.field_mail_notification__gateway_failure_reason
|
|
232
237
|
msgid ""
|
|
@@ -299,6 +304,11 @@ msgstr ""
|
|
|
299
304
|
msgid "Gateway Notification"
|
|
300
305
|
msgstr ""
|
|
301
306
|
|
|
307
|
+
#. module: mail_gateway
|
|
308
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_resend_message__gateway_notification_ids
|
|
309
|
+
msgid "Gateway Notifications"
|
|
310
|
+
msgstr ""
|
|
311
|
+
|
|
302
312
|
#. module: mail_gateway
|
|
303
313
|
#: model:ir.actions.act_window,name:mail_gateway.res_partner_gateway_channel_act_window
|
|
304
314
|
#: model:ir.ui.menu,name:mail_gateway.res_partner_gateway_channel_menu
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
from odoo import api, fields, models
|
|
6
|
+
from odoo.tests import RecordCapturer
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
class MailMessage(models.Model):
|
|
@@ -88,18 +89,33 @@ class MailMessage(models.Model):
|
|
|
88
89
|
gateway_channel_id.gateway_token
|
|
89
90
|
)
|
|
90
91
|
channel = self.env["discuss.channel"].browse(chat_id)
|
|
91
|
-
|
|
92
|
+
with RecordCapturer(
|
|
93
|
+
self.env["mail.notification"], [("gateway_channel_id", "=", channel.id)]
|
|
94
|
+
) as capt:
|
|
95
|
+
channel.message_post(**self._get_gateway_thread_message_vals())
|
|
92
96
|
if not self.gateway_type:
|
|
93
97
|
self.gateway_type = gateway_channel_id.gateway_id.gateway_type
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
notification_vals = {
|
|
99
|
+
"notification_status": "sent",
|
|
100
|
+
"mail_message_id": self.id,
|
|
101
|
+
"gateway_channel_id": channel.id,
|
|
102
|
+
"notification_type": "gateway",
|
|
103
|
+
"gateway_type": gateway_channel_id.gateway_id.gateway_type,
|
|
104
|
+
}
|
|
105
|
+
notification = capt.records
|
|
106
|
+
if notification:
|
|
107
|
+
# Set the same gateway_message_id for both notifications.
|
|
108
|
+
# When the webhook is received, both notifications must be updated.
|
|
109
|
+
# For example, when a message is sent from a document(sale.order),
|
|
110
|
+
# one notification is linked to the document,
|
|
111
|
+
# and another notification is linked to the channel.
|
|
112
|
+
notification_vals["gateway_message_id"] = notification.gateway_message_id
|
|
113
|
+
# If there is a notification with status "exception", set failure details
|
|
114
|
+
if notification.failure_type == "unknown":
|
|
115
|
+
notification_vals["failure_type"] = "unknown"
|
|
116
|
+
notification_vals["notification_status"] = "exception"
|
|
117
|
+
notification_vals["failure_reason"] = notification.failure_reason
|
|
118
|
+
self.env["mail.notification"].create(notification_vals)
|
|
103
119
|
self.env["bus.bus"]._sendone(
|
|
104
120
|
self.env.user.partner_id,
|
|
105
121
|
"mail.message/insert",
|
|
@@ -372,7 +372,7 @@ ul.auto-toc {
|
|
|
372
372
|
!! This file is generated by oca-gen-addon-readme !!
|
|
373
373
|
!! changes will be overwritten. !!
|
|
374
374
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
375
|
-
!! source digest: sha256:
|
|
375
|
+
!! source digest: sha256:dfa31cc012554c87128c29ec244c03dad893b09911795fb372d317dc7bdbf645
|
|
376
376
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
377
377
|
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/social/tree/17.0/mail_gateway"><img alt="OCA/social" src="https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_gateway"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
378
378
|
<p>This module will allow you to integrate an external chat system in your
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<odoo>
|
|
3
|
+
|
|
4
|
+
<record id="mail_notification_view_tree" model="ir.ui.view">
|
|
5
|
+
<field name="name">view.mail.notification.tree</field>
|
|
6
|
+
<field name="model">mail.notification</field>
|
|
7
|
+
<field name="inherit_id" ref="mail.mail_notification_view_tree" />
|
|
8
|
+
<field name="priority" eval="100" />
|
|
9
|
+
<field name="mode">primary</field>
|
|
10
|
+
<field name="arch" type="xml">
|
|
11
|
+
<xpath expr="//field[@name='failure_type']" position="after">
|
|
12
|
+
<field name="failure_reason" />
|
|
13
|
+
</xpath>
|
|
14
|
+
<xpath expr="//field[@name='res_partner_id']" position="attributes">
|
|
15
|
+
<attribute name="column_invisible">1</attribute>
|
|
16
|
+
</xpath>
|
|
17
|
+
<xpath expr="//field[@name='is_read']" position="attributes">
|
|
18
|
+
<attribute name="column_invisible">1</attribute>
|
|
19
|
+
</xpath>
|
|
20
|
+
</field>
|
|
21
|
+
</record>
|
|
22
|
+
|
|
23
|
+
</odoo>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from odoo import Command, api, fields, models
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class MailResendMessage(models.TransientModel):
|
|
5
|
+
_inherit = "mail.resend.message"
|
|
6
|
+
|
|
7
|
+
gateway_notification_ids = fields.Many2many(
|
|
8
|
+
"mail.notification",
|
|
9
|
+
relation="mail_resend_message_gateway_notification_rel",
|
|
10
|
+
string="Gateway Notifications",
|
|
11
|
+
readonly=True,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
@api.model
|
|
15
|
+
def default_get(self, fields):
|
|
16
|
+
values = super().default_get(fields)
|
|
17
|
+
message_id = self._context.get("mail_message_to_resend")
|
|
18
|
+
if message_id:
|
|
19
|
+
mail_message_id = self.env["mail.message"].browse(message_id)
|
|
20
|
+
notification_ids = mail_message_id.notification_ids.filtered(
|
|
21
|
+
lambda notif: notif.notification_type == "gateway"
|
|
22
|
+
and notif.notification_status == "exception"
|
|
23
|
+
)
|
|
24
|
+
values["gateway_notification_ids"] = [Command.set(notification_ids.ids)]
|
|
25
|
+
return values
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<odoo>
|
|
3
|
+
|
|
4
|
+
<record id="mail_resend_message_view_form" model="ir.ui.view">
|
|
5
|
+
<field name="name">view.mail.resend.message.form</field>
|
|
6
|
+
<field name="model">mail.resend.message</field>
|
|
7
|
+
<field name="inherit_id" ref="mail.mail_resend_message_view_form" />
|
|
8
|
+
<field name="arch" type="xml">
|
|
9
|
+
<xpath expr="//field[@name='partner_ids']" position="before">
|
|
10
|
+
<field
|
|
11
|
+
name="gateway_notification_ids"
|
|
12
|
+
context="{'tree_view_ref': 'mail_gateway.mail_notification_view_tree'}"
|
|
13
|
+
invisible="not gateway_notification_ids"
|
|
14
|
+
/>
|
|
15
|
+
</xpath>
|
|
16
|
+
</field>
|
|
17
|
+
</record>
|
|
18
|
+
|
|
19
|
+
</odoo>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-mail_gateway
|
|
3
|
-
Version: 17.0.1.0.
|
|
3
|
+
Version: 17.0.1.0.5.1
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
5
|
Requires-Dist: odoo>=17.0a,<17.1dev
|
|
6
6
|
Summary: Base module for gateway communications
|
|
@@ -27,7 +27,7 @@ Mail Gateway
|
|
|
27
27
|
!! This file is generated by oca-gen-addon-readme !!
|
|
28
28
|
!! changes will be overwritten. !!
|
|
29
29
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
30
|
-
!! source digest: sha256:
|
|
30
|
+
!! source digest: sha256:dfa31cc012554c87128c29ec244c03dad893b09911795fb372d317dc7bdbf645
|
|
31
31
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
32
32
|
|
|
33
33
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
odoo/addons/mail_gateway/README.rst,sha256=
|
|
1
|
+
odoo/addons/mail_gateway/README.rst,sha256=RFPsFwoYuf__YoS_ptqBBamphU8_LjYOk71X4boQUoU,3968
|
|
2
2
|
odoo/addons/mail_gateway/__init__.py,sha256=YSvMxJKxO12COznncWY7G8fwk4rMw_OT9jIPoWrMjzA,103
|
|
3
|
-
odoo/addons/mail_gateway/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/mail_gateway/__manifest__.py,sha256=tFw13V9FW_d-78MqUXC-yh9ThLmIf2JtayYFucIIgbE,1133
|
|
4
4
|
odoo/addons/mail_gateway/hooks.py,sha256=hzYop0HgmZ70EFqRsvm2rYNIvN0elqBDHtj7jcBQA0M,357
|
|
5
5
|
odoo/addons/mail_gateway/controllers/__init__.py,sha256=jytg2ehJRiv4skWOQoHQN0l7zCIHKSH_bF8tmsIzyLE,44
|
|
6
6
|
odoo/addons/mail_gateway/controllers/discuss.py,sha256=63r2QJiSAFdu1ZIJ54gUfjUkVJ_acPxgiyQoHIiumC4,379
|
|
7
7
|
odoo/addons/mail_gateway/controllers/gateway.py,sha256=rzI5LMxYup-QB6PCHUz2TloJOEw6LFja0Xszj3YHqMA,2880
|
|
8
|
-
odoo/addons/mail_gateway/i18n/es.po,sha256=
|
|
9
|
-
odoo/addons/mail_gateway/i18n/it.po,sha256=
|
|
10
|
-
odoo/addons/mail_gateway/i18n/mail_gateway.pot,sha256=
|
|
8
|
+
odoo/addons/mail_gateway/i18n/es.po,sha256=_K0Vq81iTr6cbSYuioL_7VrVFv39htUWqgIS8FmJJcI,33735
|
|
9
|
+
odoo/addons/mail_gateway/i18n/it.po,sha256=JiYJBJb-GPOyWBc3-x5Dwinby0W0SbMtplDdApVSCEc,37795
|
|
10
|
+
odoo/addons/mail_gateway/i18n/mail_gateway.pot,sha256=qoVWSis34fjD_vdWr1Nwy4F7s6CEyr8gFOyirUcuKzo,32448
|
|
11
11
|
odoo/addons/mail_gateway/models/__init__.py,sha256=rtdkCyZN2etA4mHFtxp2JmLILlBE-Ytln_1MYUZQ4Ys,313
|
|
12
12
|
odoo/addons/mail_gateway/models/discuss_channel.py,sha256=5j216dwVc6Z8seWtdJb_cSmaAvxCQwfNIFb9RtRTaOc,3363
|
|
13
13
|
odoo/addons/mail_gateway/models/ir_websocket.py,sha256=HfdL88oewFlJsjaizT24M52aqU7mRruK28XCo3tSsYU,709
|
|
14
14
|
odoo/addons/mail_gateway/models/mail_gateway.py,sha256=CMd0eRRwOmbpZ9fp4F94KNwAweMV4Tl63Zn8xqG6QxY,4671
|
|
15
15
|
odoo/addons/mail_gateway/models/mail_gateway_abstract.py,sha256=5RITBDlfQQelIyeTjbj6QqFyW9N1keZr3HDQlQwZS9E,2623
|
|
16
16
|
odoo/addons/mail_gateway/models/mail_guest.py,sha256=J9pvvxSibQVjcJEpP36QZXE_67aaR6kUIm9uouCsJK8,538
|
|
17
|
-
odoo/addons/mail_gateway/models/mail_message.py,sha256=
|
|
17
|
+
odoo/addons/mail_gateway/models/mail_message.py,sha256=2gGPRiaJuIO47civ-5hBbAIAQ_X8i3cuxUy1pW73ScI,5791
|
|
18
18
|
odoo/addons/mail_gateway/models/mail_notification.py,sha256=M1uWjU-yTMOhMpKAaROeHlWirJhDxd5eem7D0GJCxTg,1659
|
|
19
19
|
odoo/addons/mail_gateway/models/mail_thread.py,sha256=uv5PjWCHVtzmbzEGBeBWNXa2ISWD50l8ARopf_cVWCY,4664
|
|
20
20
|
odoo/addons/mail_gateway/models/res_partner.py,sha256=X52JUVfERhBIqckQDd0ggdeNzBkAlqk4dVcE1xAMIG0,3404
|
|
@@ -28,7 +28,7 @@ odoo/addons/mail_gateway/readme/USAGE.md,sha256=SaA5U50JiORCZ8TtFe6jLORC79xTbnZw
|
|
|
28
28
|
odoo/addons/mail_gateway/security/ir.model.access.csv,sha256=sz0zqOt9AoGgl1RYi-_uBisRCqHKOwMPfit72gh7Hyo,1275
|
|
29
29
|
odoo/addons/mail_gateway/security/security.xml,sha256=58CWuJ6pGuyosE7_gfroGjTUO6uCn9I_zwqHl2x4Ku0,2832
|
|
30
30
|
odoo/addons/mail_gateway/static/description/icon.png,sha256=oJUSI4t4BOGKGTvPJURptNJVoX1tYOK4oNzcS0ysedI,26508
|
|
31
|
-
odoo/addons/mail_gateway/static/description/index.html,sha256=
|
|
31
|
+
odoo/addons/mail_gateway/static/description/index.html,sha256=3T1QPi0M6WZIdYxqlwzVcaHTksA68kiFyYW29RIHQgk,13717
|
|
32
32
|
odoo/addons/mail_gateway/static/src/components/chatter/chatter.esm.js,sha256=9yi_GtapojtrhG3XXyh8Ht8AVKjl0aHJ6-UKzO-pDGM,445
|
|
33
33
|
odoo/addons/mail_gateway/static/src/components/chatter/chatter.xml,sha256=xIgt-XjExOB7rOixOr12sp2klV6xeajW0irGgZ2cTe4,2159
|
|
34
34
|
odoo/addons/mail_gateway/static/src/components/composer/composer.esm.js,sha256=6fKlniukIH5xb_FBll1mumEAeQODqiouxsEykN5jjqQ,4152
|
|
@@ -58,8 +58,9 @@ odoo/addons/mail_gateway/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
58
58
|
odoo/addons/mail_gateway/tests/common.py,sha256=Z2pZsKQ9E-pjZK9fgIL9iy9yvgzVD7GwqhbZyZ8VHoU,522
|
|
59
59
|
odoo/addons/mail_gateway/views/mail_gateway.xml,sha256=5s1iEejlcDEHnLtGT5T2ak9Dy6HywJM7bXZeXuQ4dCM,3984
|
|
60
60
|
odoo/addons/mail_gateway/views/mail_guest_views.xml,sha256=johBGGUwncfwMRK8zEmAj-9Vt1JFNPsJA7UV4kbgjr4,578
|
|
61
|
+
odoo/addons/mail_gateway/views/mail_notification_views.xml,sha256=Cinq-oSDz7hic-h4wNHOIhbRqV1STHpV28-fWG92YQo,942
|
|
61
62
|
odoo/addons/mail_gateway/views/res_partner_gateway_channel.xml,sha256=xgjym7um2id6od5P-fj33xmqWJJ_VfDRjd2Q2h3VjcY,2321
|
|
62
|
-
odoo/addons/mail_gateway/wizards/__init__.py,sha256=
|
|
63
|
+
odoo/addons/mail_gateway/wizards/__init__.py,sha256=aRcZTiDWv38fmdSfGgXYnQ8stvFuJ5FYlVm_DcfwJss,189
|
|
63
64
|
odoo/addons/mail_gateway/wizards/mail_compose_gateway_message.py,sha256=Q_fKgLIEhGKV-GILnj2SXIW0g1qe-ziEiSy4j38gcd4,2935
|
|
64
65
|
odoo/addons/mail_gateway/wizards/mail_compose_gateway_message.xml,sha256=Y4x9IYSjY9eheNgI1m5MQsbEcgBrMzIWv_1qcHgg4rA,1629
|
|
65
66
|
odoo/addons/mail_gateway/wizards/mail_guest_manage.py,sha256=DQwam-UZidOaq0qmK3RjSorhIfdq0tRYi0n5HHWbj3g,1809
|
|
@@ -68,7 +69,9 @@ odoo/addons/mail_gateway/wizards/mail_message_gateway_link.py,sha256=x8EHPE_t5Fn
|
|
|
68
69
|
odoo/addons/mail_gateway/wizards/mail_message_gateway_link.xml,sha256=bExiMbt7uxkZJOc9Srxm9B6vvLW494iEI_ZPFKmsuWM,976
|
|
69
70
|
odoo/addons/mail_gateway/wizards/mail_message_gateway_send.py,sha256=b85udBKvs59X5J4x0XhNjE8Ap3TjA6Z-JWc2HCjs5wQ,599
|
|
70
71
|
odoo/addons/mail_gateway/wizards/mail_message_gateway_send.xml,sha256=bvYSteMZJZDfm9kW1ObcNudw5lTEu-P9Leoncplymy0,1421
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
odoo_addon_mail_gateway-17.0.1.0.
|
|
74
|
-
odoo_addon_mail_gateway-17.0.1.0.
|
|
72
|
+
odoo/addons/mail_gateway/wizards/mail_resend_message.py,sha256=L6VEDsjMHzJG19JiXSMQ7LjJqFY0uePeeAFaiZv60b4,927
|
|
73
|
+
odoo/addons/mail_gateway/wizards/mail_resend_message_views.xml,sha256=FG6vGEywpQG5iP2Tfi6eenkaraGU1zIps6ZE4IBCV5M,734
|
|
74
|
+
odoo_addon_mail_gateway-17.0.1.0.5.1.dist-info/METADATA,sha256=rJxvUUi43q_nfHzLg4p5Wdl0U5w6hVKQeHfWnfAmvD4,4533
|
|
75
|
+
odoo_addon_mail_gateway-17.0.1.0.5.1.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
|
|
76
|
+
odoo_addon_mail_gateway-17.0.1.0.5.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
77
|
+
odoo_addon_mail_gateway-17.0.1.0.5.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|