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.
- odoo/addons/mail_gateway/README.rst +31 -24
- 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 +68 -406
- 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 +40 -8
- 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 +23 -16
- 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 +1 -2
- odoo/addons/mail_gateway/wizards/mail_message_gateway_send.py +0 -1
- {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
- odoo_addon_mail_gateway-17.0.1.0.1.dist-info/RECORD +74 -0
- {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
- odoo_addon_mail_gateway-17.0.1.0.1.dist-info/top_level.txt +1 -0
- odoo/addons/mail_gateway/i18n/es_VE.po +0 -879
- 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.3.0.dist-info/RECORD +0 -78
- odoo_addon_mail_gateway-16.0.1.3.0.dist-info/top_level.txt +0 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#
|
|
5
5
|
msgid ""
|
|
6
6
|
msgstr ""
|
|
7
|
-
"Project-Id-Version: Odoo Server
|
|
7
|
+
"Project-Id-Version: Odoo Server 17.0\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
|
9
9
|
"Last-Translator: \n"
|
|
10
10
|
"Language-Team: \n"
|
|
@@ -14,17 +14,27 @@ msgstr ""
|
|
|
14
14
|
"Plural-Forms: \n"
|
|
15
15
|
|
|
16
16
|
#. module: mail_gateway
|
|
17
|
-
#: model:ir.model.fields,field_description:mail_gateway.
|
|
17
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__res_domain
|
|
18
18
|
msgid "Active domain"
|
|
19
19
|
msgstr ""
|
|
20
20
|
|
|
21
|
+
#. module: mail_gateway
|
|
22
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__email_add_signature
|
|
23
|
+
msgid "Add signature"
|
|
24
|
+
msgstr ""
|
|
25
|
+
|
|
21
26
|
#. module: mail_gateway
|
|
22
27
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__partner_ids
|
|
23
28
|
msgid "Additional Contacts"
|
|
24
29
|
msgstr ""
|
|
25
30
|
|
|
26
31
|
#. module: mail_gateway
|
|
27
|
-
#: model:ir.model.fields,field_description:mail_gateway.
|
|
32
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__record_alias_domain_id
|
|
33
|
+
msgid "Alias Domain"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
36
|
+
#. module: mail_gateway
|
|
37
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_discuss_channel__anonymous_name
|
|
28
38
|
msgid "Anonymous Name"
|
|
29
39
|
msgstr ""
|
|
30
40
|
|
|
@@ -50,11 +60,21 @@ msgid ""
|
|
|
50
60
|
" did not match any partner."
|
|
51
61
|
msgstr ""
|
|
52
62
|
|
|
63
|
+
#. module: mail_gateway
|
|
64
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__composition_batch
|
|
65
|
+
msgid "Batch composition"
|
|
66
|
+
msgstr ""
|
|
67
|
+
|
|
53
68
|
#. module: mail_gateway
|
|
54
69
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__partner_bcc_ids
|
|
55
70
|
msgid "Bcc"
|
|
56
71
|
msgstr ""
|
|
57
72
|
|
|
73
|
+
#. module: mail_gateway
|
|
74
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__body_has_template_value
|
|
75
|
+
msgid "Body content is the same as the template"
|
|
76
|
+
msgstr ""
|
|
77
|
+
|
|
58
78
|
#. module: mail_gateway
|
|
59
79
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__can_attach_attachment
|
|
60
80
|
msgid "Can Attach Attachment"
|
|
@@ -83,17 +103,22 @@ msgid "Cc"
|
|
|
83
103
|
msgstr ""
|
|
84
104
|
|
|
85
105
|
#. module: mail_gateway
|
|
86
|
-
#: model:ir.model.fields,field_description:mail_gateway.
|
|
106
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_discuss_channel__channel_type
|
|
87
107
|
msgid "Channel Type"
|
|
88
108
|
msgstr ""
|
|
89
109
|
|
|
90
110
|
#. module: mail_gateway
|
|
91
|
-
#: model:ir.model.fields,help:mail_gateway.
|
|
111
|
+
#: model:ir.model.fields,help:mail_gateway.field_discuss_channel__channel_type
|
|
92
112
|
msgid ""
|
|
93
113
|
"Chat is private and unique between 2 persons. Group is private among invited"
|
|
94
114
|
" persons. Channel can be freely joined (depending on its configuration)."
|
|
95
115
|
msgstr ""
|
|
96
116
|
|
|
117
|
+
#. module: mail_gateway
|
|
118
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__use_exclusion_list
|
|
119
|
+
msgid "Check Exclusion List"
|
|
120
|
+
msgstr ""
|
|
121
|
+
|
|
97
122
|
#. module: mail_gateway
|
|
98
123
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_mail__gateway_message_ids
|
|
99
124
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_message__gateway_message_ids
|
|
@@ -101,7 +126,8 @@ msgid "Child gateway messages"
|
|
|
101
126
|
msgstr ""
|
|
102
127
|
|
|
103
128
|
#. module: mail_gateway
|
|
104
|
-
#: model:ir.model.fields,field_description:mail_gateway.
|
|
129
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_discuss_channel__company_id
|
|
130
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__record_company_id
|
|
105
131
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_gateway__company_id
|
|
106
132
|
#: model:ir.model.fields,field_description:mail_gateway.field_res_partner_gateway_channel__company_id
|
|
107
133
|
msgid "Company"
|
|
@@ -132,6 +158,13 @@ msgstr ""
|
|
|
132
158
|
msgid "Create new partner"
|
|
133
159
|
msgstr ""
|
|
134
160
|
|
|
161
|
+
#. module: mail_gateway
|
|
162
|
+
#. odoo-javascript
|
|
163
|
+
#: code:addons/mail_gateway/static/src/components/message/message_patch.esm.js:0
|
|
164
|
+
#, python-format
|
|
165
|
+
msgid "Create partner"
|
|
166
|
+
msgstr ""
|
|
167
|
+
|
|
135
168
|
#. module: mail_gateway
|
|
136
169
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__create_uid
|
|
137
170
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_gateway__create_uid
|
|
@@ -158,12 +191,7 @@ msgid "Delete Emails"
|
|
|
158
191
|
msgstr ""
|
|
159
192
|
|
|
160
193
|
#. module: mail_gateway
|
|
161
|
-
#: model:ir.model
|
|
162
|
-
msgid "Delete Message Copy"
|
|
163
|
-
msgstr ""
|
|
164
|
-
|
|
165
|
-
#. module: mail_gateway
|
|
166
|
-
#: model:ir.model,name:mail_gateway.model_mail_channel
|
|
194
|
+
#: model:ir.model,name:mail_gateway.model_discuss_channel
|
|
167
195
|
msgid "Discussion Channel"
|
|
168
196
|
msgstr ""
|
|
169
197
|
|
|
@@ -178,15 +206,8 @@ msgid "Display Name"
|
|
|
178
206
|
msgstr ""
|
|
179
207
|
|
|
180
208
|
#. module: mail_gateway
|
|
181
|
-
#: model:ir.model.fields,
|
|
182
|
-
msgid ""
|
|
183
|
-
"Do not keep a copy of the email in the document communication history (mass "
|
|
184
|
-
"mailing only)"
|
|
185
|
-
msgstr ""
|
|
186
|
-
|
|
187
|
-
#. module: mail_gateway
|
|
188
|
-
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__email_add_signature
|
|
189
|
-
msgid "Email Add Signature"
|
|
209
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__display_object_attachment_ids
|
|
210
|
+
msgid "Display Object Attachment"
|
|
190
211
|
msgstr ""
|
|
191
212
|
|
|
192
213
|
#. module: mail_gateway
|
|
@@ -213,31 +234,32 @@ msgid ""
|
|
|
213
234
|
"stored to ease the debugging of mailing issues."
|
|
214
235
|
msgstr ""
|
|
215
236
|
|
|
216
|
-
#. module: mail_gateway
|
|
217
|
-
#. odoo-javascript
|
|
218
|
-
#: code:addons/mail_gateway/static/src/models/discuss_sidebar_category.esm.js:0
|
|
219
|
-
#, python-format
|
|
220
|
-
msgid "Find a gateway channel..."
|
|
221
|
-
msgstr ""
|
|
222
|
-
|
|
223
237
|
#. module: mail_gateway
|
|
224
238
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__email_from
|
|
225
239
|
msgid "From"
|
|
226
240
|
msgstr ""
|
|
227
241
|
|
|
228
242
|
#. module: mail_gateway
|
|
243
|
+
#. odoo-javascript
|
|
244
|
+
#: code:addons/mail_gateway/static/src/core/common/discuss_app_model_patch.esm.js:0
|
|
229
245
|
#: model:ir.actions.act_window,name:mail_gateway.mail_gateway_act_window
|
|
230
|
-
#: model:ir.model.fields,field_description:mail_gateway.
|
|
246
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_discuss_channel__gateway_id
|
|
231
247
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_guest__gateway_id
|
|
232
248
|
#: model:ir.model.fields,field_description:mail_gateway.field_res_partner_gateway_channel__gateway_id
|
|
233
249
|
#: model:ir.model.fields,field_description:mail_gateway.field_res_users__gateway_ids
|
|
234
|
-
#: model:ir.model.fields.selection,name:mail_gateway.
|
|
250
|
+
#: model:ir.model.fields.selection,name:mail_gateway.selection__discuss_channel__channel_type__gateway
|
|
235
251
|
#: model:ir.model.fields.selection,name:mail_gateway.selection__mail_notification__notification_type__gateway
|
|
236
252
|
#: model:ir.module.category,name:mail_gateway.module_category_gateway
|
|
237
253
|
#: model:ir.ui.menu,name:mail_gateway.mail_gateway_menu
|
|
254
|
+
#, python-format
|
|
238
255
|
msgid "Gateway"
|
|
239
256
|
msgstr ""
|
|
240
257
|
|
|
258
|
+
#. module: mail_gateway
|
|
259
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_res_users_settings__is_discuss_sidebar_category_gateway_open
|
|
260
|
+
msgid "Gateway Category Open"
|
|
261
|
+
msgstr ""
|
|
262
|
+
|
|
241
263
|
#. module: mail_gateway
|
|
242
264
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_mail__gateway_channel_ids
|
|
243
265
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_message__gateway_channel_ids
|
|
@@ -255,7 +277,7 @@ msgid "Gateway Channel Data"
|
|
|
255
277
|
msgstr ""
|
|
256
278
|
|
|
257
279
|
#. module: mail_gateway
|
|
258
|
-
#: model:ir.model.fields,field_description:mail_gateway.
|
|
280
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_discuss_channel__gateway_channel_token
|
|
259
281
|
msgid "Gateway Channel Token"
|
|
260
282
|
msgstr ""
|
|
261
283
|
|
|
@@ -265,7 +287,7 @@ msgid "Gateway Failure Reason"
|
|
|
265
287
|
msgstr ""
|
|
266
288
|
|
|
267
289
|
#. module: mail_gateway
|
|
268
|
-
#: model:ir.model.fields,field_description:mail_gateway.
|
|
290
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_discuss_channel__gateway_message_ids
|
|
269
291
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_notification__gateway_message_id
|
|
270
292
|
msgid "Gateway Message"
|
|
271
293
|
msgstr ""
|
|
@@ -310,13 +332,13 @@ msgstr ""
|
|
|
310
332
|
#. module: mail_gateway
|
|
311
333
|
#. odoo-javascript
|
|
312
334
|
#: code:addons/mail_gateway/static/src/components/chatter/chatter.xml:0
|
|
313
|
-
#: code:addons/mail_gateway/static/src/
|
|
335
|
+
#: code:addons/mail_gateway/static/src/components/composer/composer.esm.js:0
|
|
314
336
|
#, python-format
|
|
315
337
|
msgid "Gateway message"
|
|
316
338
|
msgstr ""
|
|
317
339
|
|
|
318
340
|
#. module: mail_gateway
|
|
319
|
-
#: model:ir.model.fields,field_description:mail_gateway.
|
|
341
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_discuss_channel__gateway_token
|
|
320
342
|
msgid "Gateway related Token"
|
|
321
343
|
msgstr ""
|
|
322
344
|
|
|
@@ -353,6 +375,14 @@ msgid ""
|
|
|
353
375
|
"the Email Marketing app."
|
|
354
376
|
msgstr ""
|
|
355
377
|
|
|
378
|
+
#. module: mail_gateway
|
|
379
|
+
#: model:ir.model.fields,help:mail_gateway.field_mail_compose_gateway_message__scheduled_date
|
|
380
|
+
msgid ""
|
|
381
|
+
"In comment mode: if set, postpone notifications sending. In mass mail mode: "
|
|
382
|
+
"if sent, send emails after that date. This date is considered as being in "
|
|
383
|
+
"UTC timezone."
|
|
384
|
+
msgstr ""
|
|
385
|
+
|
|
356
386
|
#. module: mail_gateway
|
|
357
387
|
#: model_terms:ir.ui.view,arch_db:mail_gateway.mail_gateway_form_view
|
|
358
388
|
msgid "Integrate Webhook"
|
|
@@ -374,7 +404,23 @@ msgid "Is Editor"
|
|
|
374
404
|
msgstr ""
|
|
375
405
|
|
|
376
406
|
#. module: mail_gateway
|
|
377
|
-
#: model:ir.model.fields,
|
|
407
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__subtype_is_log
|
|
408
|
+
msgid "Is a log"
|
|
409
|
+
msgstr ""
|
|
410
|
+
|
|
411
|
+
#. module: mail_gateway
|
|
412
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__auto_delete_keep_log
|
|
413
|
+
msgid "Keep Message Copy"
|
|
414
|
+
msgstr ""
|
|
415
|
+
|
|
416
|
+
#. module: mail_gateway
|
|
417
|
+
#: model:ir.model.fields,help:mail_gateway.field_mail_compose_gateway_message__auto_delete_keep_log
|
|
418
|
+
msgid ""
|
|
419
|
+
"Keep a copy of the email content if emails are removed (mass mailing only)"
|
|
420
|
+
msgstr ""
|
|
421
|
+
|
|
422
|
+
#. module: mail_gateway
|
|
423
|
+
#: model:ir.model.fields,help:mail_gateway.field_discuss_channel__gateway_token
|
|
378
424
|
#: model:ir.model.fields,help:mail_gateway.field_mail_gateway__token
|
|
379
425
|
msgid "Key used for integration purposes"
|
|
380
426
|
msgstr ""
|
|
@@ -396,16 +442,6 @@ msgstr ""
|
|
|
396
442
|
msgid "Language"
|
|
397
443
|
msgstr ""
|
|
398
444
|
|
|
399
|
-
#. module: mail_gateway
|
|
400
|
-
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message____last_update
|
|
401
|
-
#: model:ir.model.fields,field_description:mail_gateway.field_mail_gateway____last_update
|
|
402
|
-
#: model:ir.model.fields,field_description:mail_gateway.field_mail_guest_manage____last_update
|
|
403
|
-
#: model:ir.model.fields,field_description:mail_gateway.field_mail_message_gateway_link____last_update
|
|
404
|
-
#: model:ir.model.fields,field_description:mail_gateway.field_mail_message_gateway_send____last_update
|
|
405
|
-
#: model:ir.model.fields,field_description:mail_gateway.field_res_partner_gateway_channel____last_update
|
|
406
|
-
msgid "Last Modified on"
|
|
407
|
-
msgstr ""
|
|
408
|
-
|
|
409
445
|
#. module: mail_gateway
|
|
410
446
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__write_uid
|
|
411
447
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_gateway__write_uid
|
|
@@ -433,7 +469,7 @@ msgstr ""
|
|
|
433
469
|
|
|
434
470
|
#. module: mail_gateway
|
|
435
471
|
#. odoo-javascript
|
|
436
|
-
#: code:addons/mail_gateway/static/src/
|
|
472
|
+
#: code:addons/mail_gateway/static/src/components/message/message_patch.esm.js:0
|
|
437
473
|
#, python-format
|
|
438
474
|
msgid "Link Message to thread"
|
|
439
475
|
msgstr ""
|
|
@@ -445,16 +481,11 @@ msgstr ""
|
|
|
445
481
|
|
|
446
482
|
#. module: mail_gateway
|
|
447
483
|
#. odoo-javascript
|
|
448
|
-
#: code:addons/mail_gateway/static/src/
|
|
484
|
+
#: code:addons/mail_gateway/static/src/core/common/message_actions.esm.js:0
|
|
449
485
|
#, python-format
|
|
450
486
|
msgid "Link to thread"
|
|
451
487
|
msgstr ""
|
|
452
488
|
|
|
453
|
-
#. module: mail_gateway
|
|
454
|
-
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__is_log
|
|
455
|
-
msgid "Log as Internal Note"
|
|
456
|
-
msgstr ""
|
|
457
|
-
|
|
458
489
|
#. module: mail_gateway
|
|
459
490
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__mail_activity_type_id
|
|
460
491
|
msgid "Mail Activity Type"
|
|
@@ -494,7 +525,7 @@ msgstr ""
|
|
|
494
525
|
|
|
495
526
|
#. module: mail_gateway
|
|
496
527
|
#. odoo-javascript
|
|
497
|
-
#: code:addons/mail_gateway/static/src/
|
|
528
|
+
#: code:addons/mail_gateway/static/src/components/message/message_patch.esm.js:0
|
|
498
529
|
#, python-format
|
|
499
530
|
msgid "Manage guest"
|
|
500
531
|
msgstr ""
|
|
@@ -541,11 +572,6 @@ msgstr ""
|
|
|
541
572
|
msgid "Message Notifications"
|
|
542
573
|
msgstr ""
|
|
543
574
|
|
|
544
|
-
#. module: mail_gateway
|
|
545
|
-
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__record_name
|
|
546
|
-
msgid "Message Record Name"
|
|
547
|
-
msgstr ""
|
|
548
|
-
|
|
549
575
|
#. module: mail_gateway
|
|
550
576
|
#: model:ir.model.fields,help:mail_gateway.field_mail_compose_gateway_message__message_type
|
|
551
577
|
msgid ""
|
|
@@ -571,16 +597,6 @@ msgstr ""
|
|
|
571
597
|
msgid "Notification Type"
|
|
572
598
|
msgstr ""
|
|
573
599
|
|
|
574
|
-
#. module: mail_gateway
|
|
575
|
-
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__notify
|
|
576
|
-
msgid "Notify followers"
|
|
577
|
-
msgstr ""
|
|
578
|
-
|
|
579
|
-
#. module: mail_gateway
|
|
580
|
-
#: model:ir.model.fields,help:mail_gateway.field_mail_compose_gateway_message__notify
|
|
581
|
-
msgid "Notify followers of the document (mass post only)"
|
|
582
|
-
msgstr ""
|
|
583
|
-
|
|
584
600
|
#. module: mail_gateway
|
|
585
601
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__object_attachment_ids
|
|
586
602
|
msgid "Object Attachments"
|
|
@@ -636,14 +652,19 @@ msgstr ""
|
|
|
636
652
|
msgid "Pending"
|
|
637
653
|
msgstr ""
|
|
638
654
|
|
|
655
|
+
#. module: mail_gateway
|
|
656
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__record_name
|
|
657
|
+
msgid "Record Name"
|
|
658
|
+
msgstr ""
|
|
659
|
+
|
|
639
660
|
#. module: mail_gateway
|
|
640
661
|
#: model:ir.model.fields,field_description:mail_gateway.field_mail_message_gateway_link__resource_ref
|
|
641
662
|
msgid "Record reference"
|
|
642
663
|
msgstr ""
|
|
643
664
|
|
|
644
665
|
#. module: mail_gateway
|
|
645
|
-
#: model:ir.model.fields,field_description:mail_gateway.
|
|
646
|
-
msgid "Related Document
|
|
666
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__res_ids
|
|
667
|
+
msgid "Related Document IDs"
|
|
647
668
|
msgstr ""
|
|
648
669
|
|
|
649
670
|
#. module: mail_gateway
|
|
@@ -678,6 +699,23 @@ msgid ""
|
|
|
678
699
|
"creation."
|
|
679
700
|
msgstr ""
|
|
680
701
|
|
|
702
|
+
#. module: mail_gateway
|
|
703
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__res_domain_user_id
|
|
704
|
+
msgid "Responsible"
|
|
705
|
+
msgstr ""
|
|
706
|
+
|
|
707
|
+
#. module: mail_gateway
|
|
708
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__scheduled_date
|
|
709
|
+
msgid "Scheduled Date"
|
|
710
|
+
msgstr ""
|
|
711
|
+
|
|
712
|
+
#. module: mail_gateway
|
|
713
|
+
#. odoo-javascript
|
|
714
|
+
#: code:addons/mail_gateway/static/src/core/common/discuss_app_model_patch.esm.js:0
|
|
715
|
+
#, python-format
|
|
716
|
+
msgid "Search Gateway Channel"
|
|
717
|
+
msgstr ""
|
|
718
|
+
|
|
681
719
|
#. module: mail_gateway
|
|
682
720
|
#: model_terms:ir.ui.view,arch_db:mail_gateway.mail_message_gateway_send_form_view
|
|
683
721
|
msgid "Send"
|
|
@@ -690,8 +728,27 @@ msgstr ""
|
|
|
690
728
|
|
|
691
729
|
#. module: mail_gateway
|
|
692
730
|
#. odoo-javascript
|
|
693
|
-
#: code:addons/mail_gateway/static/src/
|
|
694
|
-
|
|
731
|
+
#: code:addons/mail_gateway/static/src/components/composer/composer.esm.js:0
|
|
732
|
+
#, python-format
|
|
733
|
+
msgid "Send a message to a gateway..."
|
|
734
|
+
msgstr ""
|
|
735
|
+
|
|
736
|
+
#. module: mail_gateway
|
|
737
|
+
#. odoo-javascript
|
|
738
|
+
#: code:addons/mail_gateway/static/src/components/composer/composer.esm.js:0
|
|
739
|
+
#, python-format
|
|
740
|
+
msgid "Send gateway"
|
|
741
|
+
msgstr ""
|
|
742
|
+
|
|
743
|
+
#. module: mail_gateway
|
|
744
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__force_send
|
|
745
|
+
msgid "Send mailing or notifications directly"
|
|
746
|
+
msgstr ""
|
|
747
|
+
|
|
748
|
+
#. module: mail_gateway
|
|
749
|
+
#. odoo-javascript
|
|
750
|
+
#: code:addons/mail_gateway/static/src/components/message/message_patch.esm.js:0
|
|
751
|
+
#: code:addons/mail_gateway/static/src/core/common/message_actions.esm.js:0
|
|
695
752
|
#, python-format
|
|
696
753
|
msgid "Send with gateway"
|
|
697
754
|
msgstr ""
|
|
@@ -711,6 +768,11 @@ msgstr ""
|
|
|
711
768
|
msgid "Technical data used to get the gateway author"
|
|
712
769
|
msgstr ""
|
|
713
770
|
|
|
771
|
+
#. module: mail_gateway
|
|
772
|
+
#: model:ir.model.fields,help:mail_gateway.field_res_users_settings__is_discuss_sidebar_category_gateway_open
|
|
773
|
+
msgid "The gateway category in the sidebar will be open"
|
|
774
|
+
msgstr ""
|
|
775
|
+
|
|
714
776
|
#. module: mail_gateway
|
|
715
777
|
#: model:ir.model.fields,help:mail_gateway.field_mail_compose_gateway_message__auto_delete
|
|
716
778
|
msgid ""
|
|
@@ -719,9 +781,14 @@ msgid ""
|
|
|
719
781
|
"storage space of your Odoo database."
|
|
720
782
|
msgstr ""
|
|
721
783
|
|
|
784
|
+
#. module: mail_gateway
|
|
785
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__model_is_thread
|
|
786
|
+
msgid "Thread-Enabled"
|
|
787
|
+
msgstr ""
|
|
788
|
+
|
|
722
789
|
#. module: mail_gateway
|
|
723
790
|
#. odoo-javascript
|
|
724
|
-
#: code:addons/mail_gateway/static/src/components/
|
|
791
|
+
#: code:addons/mail_gateway/static/src/components/chatter/chatter.xml:0
|
|
725
792
|
#, python-format
|
|
726
793
|
msgid "To:"
|
|
727
794
|
msgstr ""
|
|
@@ -747,13 +814,13 @@ msgid "Update Webhook"
|
|
|
747
814
|
msgstr ""
|
|
748
815
|
|
|
749
816
|
#. module: mail_gateway
|
|
750
|
-
#: model:ir.model.fields,field_description:mail_gateway.
|
|
751
|
-
msgid "Use
|
|
817
|
+
#: model:ir.model.fields,field_description:mail_gateway.field_mail_compose_gateway_message__template_id
|
|
818
|
+
msgid "Use template"
|
|
752
819
|
msgstr ""
|
|
753
820
|
|
|
754
821
|
#. module: mail_gateway
|
|
755
|
-
#: model:ir.model.fields,
|
|
756
|
-
msgid "
|
|
822
|
+
#: model:ir.model.fields,help:mail_gateway.field_mail_compose_gateway_message__res_domain_user_id
|
|
823
|
+
msgid "Used as context used to evaluate composer domain"
|
|
757
824
|
msgstr ""
|
|
758
825
|
|
|
759
826
|
#. module: mail_gateway
|
|
@@ -762,6 +829,11 @@ msgstr ""
|
|
|
762
829
|
msgid "User"
|
|
763
830
|
msgstr ""
|
|
764
831
|
|
|
832
|
+
#. module: mail_gateway
|
|
833
|
+
#: model:ir.model,name:mail_gateway.model_res_users_settings
|
|
834
|
+
msgid "User Settings"
|
|
835
|
+
msgstr ""
|
|
836
|
+
|
|
765
837
|
#. module: mail_gateway
|
|
766
838
|
#: model:ir.model.fields,help:mail_gateway.field_mail_gateway__webhook_user_id
|
|
767
839
|
msgid "User that will create the messages"
|
|
@@ -808,13 +880,6 @@ msgstr ""
|
|
|
808
880
|
msgid "Wizard Partner"
|
|
809
881
|
msgstr ""
|
|
810
882
|
|
|
811
|
-
#. module: mail_gateway
|
|
812
|
-
#. odoo-javascript
|
|
813
|
-
#: code:addons/mail_gateway/static/src/components/message/message.xml:0
|
|
814
|
-
#, python-format
|
|
815
|
-
msgid "document"
|
|
816
|
-
msgstr ""
|
|
817
|
-
|
|
818
883
|
#. module: mail_gateway
|
|
819
884
|
#. odoo-javascript
|
|
820
885
|
#: code:addons/mail_gateway/static/src/components/chatter/chatter.xml:0
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
from . import ir_websocket
|
|
2
|
+
from . import mail_gateway_abstract
|
|
1
3
|
from . import mail_message
|
|
2
4
|
from . import mail_notification
|
|
3
|
-
from . import
|
|
5
|
+
from . import discuss_channel
|
|
4
6
|
from . import mail_gateway
|
|
5
|
-
from . import ir_websocket
|
|
6
7
|
from . import res_partner
|
|
7
8
|
from . import mail_guest
|
|
8
|
-
from . import mail_gateway_abstract
|
|
9
9
|
from . import res_users
|
|
10
|
+
from . import res_users_settings
|
|
10
11
|
from . import mail_thread
|
|
@@ -7,7 +7,7 @@ from odoo import api, fields, models
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class MailChannel(models.Model):
|
|
10
|
-
_inherit = "
|
|
10
|
+
_inherit = "discuss.channel"
|
|
11
11
|
|
|
12
12
|
gateway_channel_token = fields.Char()
|
|
13
13
|
anonymous_name = fields.Char() # Same field we will use on im_livechat
|
|
@@ -26,9 +26,16 @@ class MailChannel(models.Model):
|
|
|
26
26
|
required=False,
|
|
27
27
|
)
|
|
28
28
|
|
|
29
|
-
def
|
|
30
|
-
|
|
31
|
-
for record
|
|
29
|
+
def _compute_is_chat(self):
|
|
30
|
+
res = super()._compute_is_chat()
|
|
31
|
+
for record in self:
|
|
32
|
+
if record.channel_type == "gateway":
|
|
33
|
+
record.is_chat = True
|
|
34
|
+
return res
|
|
35
|
+
|
|
36
|
+
def _channel_info(self):
|
|
37
|
+
result = super()._channel_info()
|
|
38
|
+
for record, item in zip(self, result, strict=True):
|
|
32
39
|
item["gateway"] = {
|
|
33
40
|
"id": record.gateway_id.id,
|
|
34
41
|
"name": record.gateway_id.name,
|
|
@@ -70,10 +77,25 @@ class MailChannel(models.Model):
|
|
|
70
77
|
).send_gateway()
|
|
71
78
|
return message
|
|
72
79
|
|
|
73
|
-
def
|
|
74
|
-
self
|
|
80
|
+
def _message_update_content(
|
|
81
|
+
self,
|
|
82
|
+
message,
|
|
83
|
+
body,
|
|
84
|
+
attachment_ids=None,
|
|
85
|
+
partner_ids=None,
|
|
86
|
+
strict=True,
|
|
87
|
+
**kwargs,
|
|
88
|
+
):
|
|
89
|
+
res = super()._message_update_content(
|
|
90
|
+
message=message,
|
|
91
|
+
body=body,
|
|
92
|
+
attachment_ids=attachment_ids,
|
|
93
|
+
partner_ids=partner_ids,
|
|
94
|
+
strict=strict,
|
|
95
|
+
**kwargs,
|
|
96
|
+
)
|
|
75
97
|
if self.channel_type == "gateway" and message.gateway_notification_ids:
|
|
76
98
|
self.env[
|
|
77
|
-
"mail.gateway.{
|
|
99
|
+
f"mail.gateway.{self.gateway_id.gateway_type}"
|
|
78
100
|
]._update_content_after_hook(self, message)
|
|
79
|
-
return
|
|
101
|
+
return res
|
|
@@ -14,7 +14,7 @@ class IrWebsocket(models.AbstractModel):
|
|
|
14
14
|
result = super()._build_bus_channel_list(channels)
|
|
15
15
|
if req.session.uid:
|
|
16
16
|
if req.env.user.has_group("mail_gateway.gateway_user"):
|
|
17
|
-
for channel in req.env["
|
|
17
|
+
for channel in req.env["discuss.channel"].search(
|
|
18
18
|
[("channel_type", "=", "gateway")]
|
|
19
19
|
):
|
|
20
20
|
result.append(channel)
|
|
@@ -49,7 +49,7 @@ class MailGateway(models.Model):
|
|
|
49
49
|
|
|
50
50
|
def _get_channel_id(self, chat_token):
|
|
51
51
|
return (
|
|
52
|
-
self.env["
|
|
52
|
+
self.env["discuss.channel"]
|
|
53
53
|
.search(
|
|
54
54
|
[
|
|
55
55
|
("gateway_channel_token", "=", str(chat_token)),
|
|
@@ -61,7 +61,7 @@ class MailGateway(models.Model):
|
|
|
61
61
|
)
|
|
62
62
|
|
|
63
63
|
def _get_webhook_url(self):
|
|
64
|
-
return "
|
|
64
|
+
return "{}/gateway/{}/{}/update".format(
|
|
65
65
|
self.webhook_url
|
|
66
66
|
or self.env["ir.config_parameter"].get_param("web.base.url"),
|
|
67
67
|
self.gateway_type,
|
|
@@ -91,7 +91,7 @@ class MailGateway(models.Model):
|
|
|
91
91
|
self.set_webhook()
|
|
92
92
|
|
|
93
93
|
def write(self, vals):
|
|
94
|
-
res = super(
|
|
94
|
+
res = super().write(vals)
|
|
95
95
|
if (
|
|
96
96
|
"webhook_key" in vals
|
|
97
97
|
or "integrated_webhook_state" in vals
|
|
@@ -103,7 +103,7 @@ class MailGateway(models.Model):
|
|
|
103
103
|
|
|
104
104
|
@api.model_create_multi
|
|
105
105
|
def create(self, mvals):
|
|
106
|
-
res = super(
|
|
106
|
+
res = super().create(mvals)
|
|
107
107
|
self.clear_caches()
|
|
108
108
|
return res
|
|
109
109
|
|
|
@@ -33,10 +33,10 @@ class MailGatewayAbstract(models.AbstractModel):
|
|
|
33
33
|
def _get_channel(self, gateway, token, update, force_create=False):
|
|
34
34
|
chat_id = gateway._get_channel_id(token)
|
|
35
35
|
if chat_id:
|
|
36
|
-
return gateway.env["
|
|
36
|
+
return gateway.env["discuss.channel"].browse(chat_id)
|
|
37
37
|
if not force_create and gateway.has_new_channel_security:
|
|
38
38
|
return False
|
|
39
|
-
channel = gateway.env["
|
|
39
|
+
channel = gateway.env["discuss.channel"].create(
|
|
40
40
|
self._get_channel_vals(gateway, token, update)
|
|
41
41
|
)
|
|
42
42
|
channel._broadcast(channel.channel_member_ids.mapped("partner_id").ids)
|
|
@@ -6,7 +6,6 @@ from odoo import api, fields, models
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class MailMessage(models.Model):
|
|
9
|
-
|
|
10
9
|
_inherit = "mail.message"
|
|
11
10
|
|
|
12
11
|
gateway_type = fields.Selection(
|
|
@@ -49,14 +48,18 @@ class MailMessage(models.Model):
|
|
|
49
48
|
def _compute_gateway_channel_ids(self):
|
|
50
49
|
for record in self:
|
|
51
50
|
if self.env.user.has_group("mail_gateway.gateway_user"):
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
partners = record.notification_ids.res_partner_id
|
|
52
|
+
channels = partners.gateway_channel_ids.filtered(
|
|
53
|
+
lambda r, messages=record.gateway_message_ids: (
|
|
54
|
+
r.gateway_token,
|
|
55
|
+
r.gateway_id.id,
|
|
56
|
+
)
|
|
54
57
|
not in [
|
|
55
58
|
(
|
|
56
59
|
notification.gateway_channel_id.gateway_channel_token,
|
|
57
60
|
notification.gateway_channel_id.gateway_id.id,
|
|
58
61
|
)
|
|
59
|
-
for notification in
|
|
62
|
+
for notification in messages.gateway_notification_ids
|
|
60
63
|
]
|
|
61
64
|
)
|
|
62
65
|
else:
|
|
@@ -77,16 +80,14 @@ class MailMessage(models.Model):
|
|
|
77
80
|
|
|
78
81
|
def _get_message_format_fields(self):
|
|
79
82
|
result = super()._get_message_format_fields()
|
|
80
|
-
result
|
|
81
|
-
result.append("gateway_channel_data")
|
|
82
|
-
result.append("gateway_thread_data")
|
|
83
|
+
result += ["gateway_type", "gateway_channel_data", "gateway_thread_data"]
|
|
83
84
|
return result
|
|
84
85
|
|
|
85
86
|
def _send_to_gateway_thread(self, gateway_channel_id):
|
|
86
87
|
chat_id = gateway_channel_id.gateway_id._get_channel_id(
|
|
87
88
|
gateway_channel_id.gateway_token
|
|
88
89
|
)
|
|
89
|
-
channel = self.env["
|
|
90
|
+
channel = self.env["discuss.channel"].browse(chat_id)
|
|
90
91
|
channel.message_post(**self._get_gateway_thread_message_vals())
|
|
91
92
|
if not self.gateway_type:
|
|
92
93
|
self.gateway_type = gateway_channel_id.gateway_id.gateway_type
|