odoo-addon-mail-gateway 16.0.1.3.0__py3-none-any.whl → 18.0.1.0.0.3__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 +41 -24
- odoo/addons/mail_gateway/__init__.py +1 -1
- odoo/addons/mail_gateway/__manifest__.py +7 -14
- odoo/addons/mail_gateway/controllers/__init__.py +0 -1
- odoo/addons/mail_gateway/controllers/gateway.py +5 -2
- 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 +140 -121
- odoo/addons/mail_gateway/models/__init__.py +4 -3
- odoo/addons/mail_gateway/models/{mail_channel.py → discuss_channel.py} +45 -17
- odoo/addons/mail_gateway/models/ir_websocket.py +1 -1
- odoo/addons/mail_gateway/models/mail_gateway.py +8 -8
- odoo/addons/mail_gateway/models/mail_gateway_abstract.py +3 -3
- odoo/addons/mail_gateway/models/mail_guest.py +6 -4
- odoo/addons/mail_gateway/models/mail_message.py +40 -21
- odoo/addons/mail_gateway/models/mail_notification.py +15 -8
- odoo/addons/mail_gateway/models/mail_thread.py +56 -10
- odoo/addons/mail_gateway/models/res_partner.py +10 -32
- odoo/addons/mail_gateway/models/res_users.py +3 -4
- odoo/addons/mail_gateway/models/res_users_settings.py +12 -0
- odoo/addons/mail_gateway/readme/CONTRIBUTORS.md +5 -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/ROADMAP.md +1 -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 -10
- odoo/addons/mail_gateway/static/description/index.html +46 -28
- odoo/addons/mail_gateway/static/src/components/chatter/chatter.esm.js +14 -0
- odoo/addons/mail_gateway/static/src/components/chatter/chatter.xml +42 -22
- odoo/addons/mail_gateway/static/src/components/composer/composer.esm.js +107 -0
- odoo/addons/mail_gateway/static/src/components/gateway_follower/gateway_follower.esm.js +35 -23
- 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 +22 -0
- odoo/addons/mail_gateway/static/src/core/common/discuss_app_model_patch.esm.js +25 -0
- odoo/addons/mail_gateway/static/src/core/common/mail_composer_send_dropdown.esm.js +27 -0
- odoo/addons/mail_gateway/static/src/core/common/mail_composer_send_dropdown.xml +15 -0
- odoo/addons/mail_gateway/static/src/core/common/message_actions.esm.js +25 -0
- odoo/addons/mail_gateway/static/src/core/common/message_model_patch.esm.js +25 -0
- odoo/addons/mail_gateway/static/src/core/common/notification_model_patch.esm.js +34 -0
- odoo/addons/mail_gateway/static/src/core/common/persona_model_patch.esm.js +10 -0
- odoo/addons/mail_gateway/static/src/core/common/store_service_patch.esm.js +18 -0
- odoo/addons/mail_gateway/static/src/core/common/thread_model_patch.esm.js +54 -0
- odoo/addons/mail_gateway/static/src/core/web/discuss_app_category_model_patch.esm.js +19 -0
- odoo/addons/mail_gateway/static/src/core/web/discuss_sidebar_category_item_patch.xml +16 -0
- odoo/addons/mail_gateway/static/src/core/web/gateway_core_web_service.esm.js +36 -0
- odoo/addons/mail_gateway/static/src/models/gateway.esm.js +21 -15
- odoo/addons/mail_gateway/static/src/models/gateway_channel.esm.js +20 -13
- odoo/addons/mail_gateway/static/src/models/gateway_follower.esm.js +23 -0
- odoo/addons/mail_gateway/tools/__init__.py +1 -0
- odoo/addons/mail_gateway/tools/discuss.py +16 -0
- odoo/addons/mail_gateway/views/mail_gateway.xml +7 -7
- odoo/addons/mail_gateway/views/mail_guest_views.xml +15 -0
- odoo/addons/mail_gateway/views/res_partner_gateway_channel.xml +3 -4
- odoo/addons/mail_gateway/views/res_users_settings_views.xml +12 -0
- odoo/addons/mail_gateway/wizards/mail_compose_gateway_message.py +19 -4
- odoo/addons/mail_gateway/wizards/mail_compose_gateway_message.xml +2 -7
- odoo/addons/mail_gateway/wizards/mail_guest_manage.py +2 -3
- odoo/addons/mail_gateway/wizards/mail_guest_manage.xml +2 -6
- odoo/addons/mail_gateway/wizards/mail_message_gateway_link.py +3 -6
- odoo/addons/mail_gateway/wizards/mail_message_gateway_link.xml +0 -2
- odoo/addons/mail_gateway/wizards/mail_message_gateway_send.py +0 -1
- odoo/addons/mail_gateway/wizards/mail_message_gateway_send.xml +0 -4
- {odoo_addon_mail_gateway-16.0.1.3.0.dist-info → odoo_addon_mail_gateway-18.0.1.0.0.3.dist-info}/METADATA +48 -30
- odoo_addon_mail_gateway-18.0.1.0.0.3.dist-info/RECORD +77 -0
- {odoo_addon_mail_gateway-16.0.1.3.0.dist-info → odoo_addon_mail_gateway-18.0.1.0.0.3.dist-info}/WHEEL +1 -1
- odoo_addon_mail_gateway-18.0.1.0.0.3.dist-info/top_level.txt +1 -0
- odoo/addons/mail_gateway/controllers/discuss.py +0 -11
- 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
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/** @odoo-module **/
|
|
2
|
-
|
|
3
|
-
import {attr, one} from "@mail/model/model_field";
|
|
4
|
-
import {clear} from "@mail/model/model_field_command";
|
|
5
|
-
import {registerPatch} from "@mail/model/model_core";
|
|
6
|
-
|
|
7
|
-
registerPatch({
|
|
8
|
-
name: "Message",
|
|
9
|
-
fields: {
|
|
10
|
-
gateway_type: attr(),
|
|
11
|
-
gateway_channel_data: attr(),
|
|
12
|
-
gateway_thread_data: attr(),
|
|
13
|
-
gatewayThread: one("Thread", {
|
|
14
|
-
compute() {
|
|
15
|
-
if (
|
|
16
|
-
this.gateway_thread_data &&
|
|
17
|
-
Object.keys(this.gateway_thread_data).length > 0
|
|
18
|
-
) {
|
|
19
|
-
return this.gateway_thread_data;
|
|
20
|
-
}
|
|
21
|
-
return clear();
|
|
22
|
-
},
|
|
23
|
-
inverse: "messagesAsGatewayThread",
|
|
24
|
-
}),
|
|
25
|
-
canBeDeleted: {
|
|
26
|
-
compute() {
|
|
27
|
-
if (
|
|
28
|
-
this.originThread &&
|
|
29
|
-
this.originThread.model !== "mail.channel" &&
|
|
30
|
-
this.gateway_type
|
|
31
|
-
) {
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
if (
|
|
35
|
-
this.originThread &&
|
|
36
|
-
this.originThread.model === "mail.channel" &&
|
|
37
|
-
this.gateway_type
|
|
38
|
-
) {
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
return this._super();
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
modelMethods: {
|
|
46
|
-
convertData(data) {
|
|
47
|
-
const data2 = this._super(data);
|
|
48
|
-
data2.gateway_type = data.gateway_type;
|
|
49
|
-
data2.gateway_channel_data = data.gateway_channel_data;
|
|
50
|
-
data2.gateway_thread_data = data.gateway_thread_data;
|
|
51
|
-
return data2;
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
recordMethods: {
|
|
55
|
-
/**
|
|
56
|
-
* @private
|
|
57
|
-
*/
|
|
58
|
-
_computeGatewayData() {
|
|
59
|
-
if (
|
|
60
|
-
this.gateway_thread_data &&
|
|
61
|
-
Object.keys(this.gateway_thread_data).length > 0
|
|
62
|
-
) {
|
|
63
|
-
this.update({gatewayThread: this.gateway_thread_data});
|
|
64
|
-
} else {
|
|
65
|
-
this.update({gatewayThread: clear()});
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
onChanges: [
|
|
71
|
-
{
|
|
72
|
-
dependencies: ["gateway_thread_data"],
|
|
73
|
-
methodName: "_computeGatewayData",
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
});
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/** @odoo-module **/
|
|
2
|
-
import {one} from "@mail/model/model_field";
|
|
3
|
-
import {registerPatch} from "@mail/model/model_core";
|
|
4
|
-
|
|
5
|
-
registerPatch({
|
|
6
|
-
name: "MessageAction",
|
|
7
|
-
fields: {
|
|
8
|
-
messageActionListOwnerAsSendGateway: one("MessageActionList", {
|
|
9
|
-
identifying: true,
|
|
10
|
-
inverse: "actionSendGateway",
|
|
11
|
-
}),
|
|
12
|
-
messageActionListOwnerAsAddToThread: one("MessageActionList", {
|
|
13
|
-
identifying: true,
|
|
14
|
-
inverse: "actionAddToThread",
|
|
15
|
-
}),
|
|
16
|
-
sequence: {
|
|
17
|
-
compute() {
|
|
18
|
-
if (
|
|
19
|
-
this.messageActionListOwner ===
|
|
20
|
-
this.messageActionListOwnerAsSendGateway
|
|
21
|
-
) {
|
|
22
|
-
return 7;
|
|
23
|
-
}
|
|
24
|
-
if (
|
|
25
|
-
this.messageActionListOwner ===
|
|
26
|
-
this.messageActionListOwnerAsAddToThread
|
|
27
|
-
) {
|
|
28
|
-
return 8;
|
|
29
|
-
}
|
|
30
|
-
return this._super();
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
messageActionListOwner: {
|
|
34
|
-
compute() {
|
|
35
|
-
if (this.messageActionListOwnerAsSendGateway) {
|
|
36
|
-
return this.messageActionListOwnerAsSendGateway;
|
|
37
|
-
}
|
|
38
|
-
if (this.messageActionListOwnerAsAddToThread) {
|
|
39
|
-
return this.messageActionListOwnerAsAddToThread;
|
|
40
|
-
}
|
|
41
|
-
return this._super();
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/** @odoo-module **/
|
|
2
|
-
import {clear} from "@mail/model/model_field_command";
|
|
3
|
-
import {one} from "@mail/model/model_field";
|
|
4
|
-
import {registerPatch} from "@mail/model/model_core";
|
|
5
|
-
|
|
6
|
-
registerPatch({
|
|
7
|
-
name: "MessageActionList",
|
|
8
|
-
fields: {
|
|
9
|
-
actionSendGateway: one("MessageAction", {
|
|
10
|
-
compute() {
|
|
11
|
-
if (
|
|
12
|
-
this.message &&
|
|
13
|
-
this.message.gateway_channel_data &&
|
|
14
|
-
this.message.gateway_channel_data.partners &&
|
|
15
|
-
Object.keys(this.message.gateway_channel_data.partners).length
|
|
16
|
-
) {
|
|
17
|
-
return {};
|
|
18
|
-
}
|
|
19
|
-
return clear();
|
|
20
|
-
},
|
|
21
|
-
inverse: "messageActionListOwnerAsSendGateway",
|
|
22
|
-
}),
|
|
23
|
-
actionAddToThread: one("MessageAction", {
|
|
24
|
-
compute() {
|
|
25
|
-
if (
|
|
26
|
-
this.message.gateway_type &&
|
|
27
|
-
!this.message.gatewayThread &&
|
|
28
|
-
this.message.originThread.model === "mail.channel"
|
|
29
|
-
) {
|
|
30
|
-
return {};
|
|
31
|
-
}
|
|
32
|
-
return clear();
|
|
33
|
-
},
|
|
34
|
-
inverse: "messageActionListOwnerAsAddToThread",
|
|
35
|
-
}),
|
|
36
|
-
},
|
|
37
|
-
});
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/** @odoo-module **/
|
|
2
|
-
import {registerPatch} from "@mail/model/model_core";
|
|
3
|
-
|
|
4
|
-
registerPatch({
|
|
5
|
-
name: "MessageActionView",
|
|
6
|
-
recordMethods: {
|
|
7
|
-
onClick(ev) {
|
|
8
|
-
if (
|
|
9
|
-
this.messageAction.messageActionListOwner ===
|
|
10
|
-
this.messageAction.messageActionListOwnerAsSendGateway
|
|
11
|
-
) {
|
|
12
|
-
ev.stopPropagation();
|
|
13
|
-
this.env.services.action.doAction({
|
|
14
|
-
name: this.env._t("Send with gateway"),
|
|
15
|
-
type: "ir.actions.act_window",
|
|
16
|
-
res_model: "mail.message.gateway.send",
|
|
17
|
-
context: {
|
|
18
|
-
...this.messageAction.messageActionListOwner.message
|
|
19
|
-
.gateway_channel_data,
|
|
20
|
-
default_message_id:
|
|
21
|
-
this.messageAction.messageActionListOwner.message.id,
|
|
22
|
-
},
|
|
23
|
-
views: [[false, "form"]],
|
|
24
|
-
target: "new",
|
|
25
|
-
});
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
if (
|
|
29
|
-
this.messageAction.messageActionListOwner ===
|
|
30
|
-
this.messageAction.messageActionListOwnerAsAddToThread
|
|
31
|
-
) {
|
|
32
|
-
ev.stopPropagation();
|
|
33
|
-
this.env.services.action.doAction({
|
|
34
|
-
name: this.env._t("Link Message to thread"),
|
|
35
|
-
type: "ir.actions.act_window",
|
|
36
|
-
res_model: "mail.message.gateway.link",
|
|
37
|
-
context: {
|
|
38
|
-
default_message_id:
|
|
39
|
-
this.messageAction.messageActionListOwner.message.id,
|
|
40
|
-
},
|
|
41
|
-
views: [[false, "form"]],
|
|
42
|
-
target: "new",
|
|
43
|
-
});
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
return this._super(...arguments);
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
fields: {
|
|
50
|
-
title: {
|
|
51
|
-
compute() {
|
|
52
|
-
if (
|
|
53
|
-
this.messageAction.messageActionListOwner ===
|
|
54
|
-
this.messageAction.messageActionListOwnerAsSendGateway
|
|
55
|
-
) {
|
|
56
|
-
return this.env._t("Send with gateway");
|
|
57
|
-
}
|
|
58
|
-
if (
|
|
59
|
-
this.messageAction.messageActionListOwner ===
|
|
60
|
-
this.messageAction.messageActionListOwnerAsAddToThread
|
|
61
|
-
) {
|
|
62
|
-
return this.env._t("Link to thread");
|
|
63
|
-
}
|
|
64
|
-
return this._super();
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
classNames: {
|
|
68
|
-
compute() {
|
|
69
|
-
if (
|
|
70
|
-
this.messageAction.messageActionListOwner ===
|
|
71
|
-
this.messageAction.messageActionListOwnerAsSendGateway
|
|
72
|
-
) {
|
|
73
|
-
return (
|
|
74
|
-
this.paddingClassNames +
|
|
75
|
-
" fa fa-lg fa-share-square-o o_MessageActionView_actionSendGateway"
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
if (
|
|
79
|
-
this.messageAction.messageActionListOwner ===
|
|
80
|
-
this.messageAction.messageActionListOwnerAsAddToThread
|
|
81
|
-
) {
|
|
82
|
-
return (
|
|
83
|
-
this.paddingClassNames +
|
|
84
|
-
" fa fa-lg fa-link o_MessageActionView_actionAddToThread"
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
return this._super();
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** @odoo-module **/
|
|
2
|
-
|
|
3
|
-
import {registerPatch} from "@mail/model/model_core";
|
|
4
|
-
|
|
5
|
-
registerPatch({
|
|
6
|
-
name: "MessagingInitializer",
|
|
7
|
-
recordMethods: {
|
|
8
|
-
async _init({gateways}) {
|
|
9
|
-
const discuss = this.messaging.discuss;
|
|
10
|
-
if (gateways) {
|
|
11
|
-
this.messaging.executeGracefully(
|
|
12
|
-
gateways.map((gatewayData) => () => {
|
|
13
|
-
this.messaging.models.DiscussSidebarCategory.insert({
|
|
14
|
-
discussAsGateways: discuss,
|
|
15
|
-
gateway: gatewayData,
|
|
16
|
-
gateway_id: gatewayData.id,
|
|
17
|
-
});
|
|
18
|
-
})
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
this._super(...arguments);
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/** @odoo-module **/
|
|
2
|
-
|
|
3
|
-
import {attr} from "@mail/model/model_field";
|
|
4
|
-
import {registerPatch} from "@mail/model/model_core";
|
|
5
|
-
|
|
6
|
-
registerPatch({
|
|
7
|
-
name: "Notification",
|
|
8
|
-
modelMethods: {
|
|
9
|
-
convertData(data) {
|
|
10
|
-
var data2 = this._super(data);
|
|
11
|
-
data2.gateway_type = data.gateway_type;
|
|
12
|
-
data2.channel_name = data.channel_name;
|
|
13
|
-
return data2;
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
fields: {
|
|
17
|
-
channel_name: attr(),
|
|
18
|
-
gateway_type: attr(),
|
|
19
|
-
},
|
|
20
|
-
});
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/** @odoo-module **/
|
|
2
|
-
|
|
3
|
-
import {many, one} from "@mail/model/model_field";
|
|
4
|
-
import {registerPatch} from "@mail/model/model_core";
|
|
5
|
-
|
|
6
|
-
registerPatch({
|
|
7
|
-
name: "Thread",
|
|
8
|
-
fields: {
|
|
9
|
-
gateway: one("Gateway"),
|
|
10
|
-
messagesAsGatewayThread: many("Message", {
|
|
11
|
-
inverse: "gatewayThread",
|
|
12
|
-
isCausal: true,
|
|
13
|
-
}),
|
|
14
|
-
hasInviteFeature: {
|
|
15
|
-
compute() {
|
|
16
|
-
if (this.channel && this.channel.channel_type === "gateway") {
|
|
17
|
-
return true;
|
|
18
|
-
}
|
|
19
|
-
return this._super();
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
hasMemberListFeature: {
|
|
23
|
-
compute() {
|
|
24
|
-
if (this.channel && this.channel.channel_type === "gateway") {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
return this._super();
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
isChatChannel: {
|
|
31
|
-
compute() {
|
|
32
|
-
if (this.channel && this.channel.channel_type === "gateway") {
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
return this._super();
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
modelMethods: {
|
|
40
|
-
convertData(data) {
|
|
41
|
-
var data2 = this._super(data);
|
|
42
|
-
if (data.gateway_id) {
|
|
43
|
-
data2.gateway = {id: data.gateway_id};
|
|
44
|
-
}
|
|
45
|
-
return data2;
|
|
46
|
-
},
|
|
47
|
-
async searchGatewaysToOpen({limit, searchTerm, gateway_id}) {
|
|
48
|
-
const domain = [
|
|
49
|
-
["channel_type", "=", "gateway"],
|
|
50
|
-
["name", "ilike", searchTerm],
|
|
51
|
-
["gateway_id", "=", gateway_id],
|
|
52
|
-
];
|
|
53
|
-
const fields = ["channel_type", "name"];
|
|
54
|
-
const channelsData = await this.messaging.rpc({
|
|
55
|
-
model: "mail.channel",
|
|
56
|
-
method: "search_read",
|
|
57
|
-
kwargs: {
|
|
58
|
-
domain,
|
|
59
|
-
fields,
|
|
60
|
-
limit,
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
|
-
return this.insert(
|
|
64
|
-
channelsData.map((channelData) =>
|
|
65
|
-
this.messaging.models.Thread.convertData({
|
|
66
|
-
channel: {
|
|
67
|
-
channel_type: channelData.channel_type,
|
|
68
|
-
id: channelData.id,
|
|
69
|
-
},
|
|
70
|
-
id: channelData.id,
|
|
71
|
-
name: channelData.name,
|
|
72
|
-
})
|
|
73
|
-
)
|
|
74
|
-
);
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
});
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
odoo/addons/mail_gateway/README.rst,sha256=kiB_yI2X8u80bybb29dVhIUQz4kBs1D4TFJoEV5Mr0s,3972
|
|
2
|
-
odoo/addons/mail_gateway/__init__.py,sha256=aIwynWdyzP-khr64it84qR6aLsV3nt93saACZSgoJ7w,128
|
|
3
|
-
odoo/addons/mail_gateway/__manifest__.py,sha256=CtLAgTN2WU-M3XPvKOEmyXIUz7OcqNK2IJOm6i9W2g0,1339
|
|
4
|
-
odoo/addons/mail_gateway/hooks.py,sha256=gNJ9Vw1vGd1mjdP_9iNmaPfHhun6kJT_DUR9oZjULyM,338
|
|
5
|
-
odoo/addons/mail_gateway/controllers/__init__.py,sha256=jytg2ehJRiv4skWOQoHQN0l7zCIHKSH_bF8tmsIzyLE,44
|
|
6
|
-
odoo/addons/mail_gateway/controllers/discuss.py,sha256=QNrwrGzWl85o8on8Yk81C6q0CyswzQ3Na2E6_32H8aE,383
|
|
7
|
-
odoo/addons/mail_gateway/controllers/gateway.py,sha256=PvsfRTL_ZrA_yhKpibLNSn6idOD2whEMuTV_V3gh990,2777
|
|
8
|
-
odoo/addons/mail_gateway/i18n/es.po,sha256=4sv9ryrvyXSVr1mFs1f9e_g1orvfeqZlhg6nx42fgnY,35480
|
|
9
|
-
odoo/addons/mail_gateway/i18n/es_VE.po,sha256=gGjoC94a62iFJqN_kkYt2hgljIpZ394nsOp_uNJq4sQ,35552
|
|
10
|
-
odoo/addons/mail_gateway/i18n/it.po,sha256=4IGuTGm92CwbF27A44zhzxDRFkarYmS0VgqGlcJFcLg,34690
|
|
11
|
-
odoo/addons/mail_gateway/i18n/mail_gateway.pot,sha256=sToZwwrrtIN4G8bBMgoosjCBSuSL-oFcIQz2L008Cks,30099
|
|
12
|
-
odoo/addons/mail_gateway/models/__init__.py,sha256=PYOJ6C-9Wfi5ocaXzWMJYgjNTLmxMRpFdFOCxSWQecc,277
|
|
13
|
-
odoo/addons/mail_gateway/models/ir_websocket.py,sha256=8UgstHwBuptksLy_FvJPpq5bTUpZw_b8Jn8FbBrEAiw,706
|
|
14
|
-
odoo/addons/mail_gateway/models/mail_channel.py,sha256=U8s_sUEg571HJ9V1QbInvE3bNCz9ov7UNbT_0_aqQP8,2869
|
|
15
|
-
odoo/addons/mail_gateway/models/mail_gateway.py,sha256=N8eVyr1el5raKd51eyBGGF2rMxghotzj11S81CjXADw,4698
|
|
16
|
-
odoo/addons/mail_gateway/models/mail_gateway_abstract.py,sha256=F7nkCA_0Zm6PMyWbZkRBrb0rrIlaMX9mpug0FyGwT1Q,2617
|
|
17
|
-
odoo/addons/mail_gateway/models/mail_guest.py,sha256=J9pvvxSibQVjcJEpP36QZXE_67aaR6kUIm9uouCsJK8,538
|
|
18
|
-
odoo/addons/mail_gateway/models/mail_message.py,sha256=3JQuKrcfqJLdZpkKFsx3QbG-54XL7FDCpViY6lRGm0Q,4680
|
|
19
|
-
odoo/addons/mail_gateway/models/mail_notification.py,sha256=A964ujvJ51qEXXIsFJxJ5l-bI8vJHndHRQ5nouDItjk,1640
|
|
20
|
-
odoo/addons/mail_gateway/models/mail_thread.py,sha256=nTTy6H0TUbOrOCH_WaQZ9Vncz4wBcwgLxl36sycsv98,3731
|
|
21
|
-
odoo/addons/mail_gateway/models/res_partner.py,sha256=Z0xl4D-ELsNEiiBOkJezy2Opu-zNT5S2XWwA6i5Nmqs,3515
|
|
22
|
-
odoo/addons/mail_gateway/models/res_users.py,sha256=PJxVRqICXOKASaJ43EsyjCX5_nJKpTZ0dcF-rx5HNHk,392
|
|
23
|
-
odoo/addons/mail_gateway/readme/CONFIGURATION.rst,sha256=u4AuXP5LvuOYd3TsNozoBqgMJNLjaA_ZcgP62nY54Bo,199
|
|
24
|
-
odoo/addons/mail_gateway/readme/CONTRIBUTORS.rst,sha256=lDMxykpCzOx4vkXTCPMNb8B5YmZH6N5FnmNSzRgHaR4,29
|
|
25
|
-
odoo/addons/mail_gateway/readme/CREDITS.rst,sha256=ulhmf4S0p_-Gelh612hRrUt9upyYqeyE85O8pCom-1A,93
|
|
26
|
-
odoo/addons/mail_gateway/readme/DESCRIPTION.rst,sha256=0N8FYy0NUUuZ_SBOQBFObofZTelGlT_VRFVyf2bGcNA,377
|
|
27
|
-
odoo/addons/mail_gateway/readme/USAGE.rst,sha256=oIFvEwsDa3p1H85uTCKFtW1zHO9Y5h4F0TD_bVydG5I,623
|
|
28
|
-
odoo/addons/mail_gateway/security/ir.model.access.csv,sha256=FOT8arYtpenpbxWo0qYeb5FN_nGfpCtY4A4y8iOT79E,1079
|
|
29
|
-
odoo/addons/mail_gateway/security/security.xml,sha256=DwEPzbePb5q6TaaOuEtBIC2iLW5gvyXFEfFNyDXCBgQ,2883
|
|
30
|
-
odoo/addons/mail_gateway/static/description/icon.png,sha256=oJUSI4t4BOGKGTvPJURptNJVoX1tYOK4oNzcS0ysedI,26508
|
|
31
|
-
odoo/addons/mail_gateway/static/description/index.html,sha256=MHggAaC9KQPyC2G_5j4k-zjgtSad_eZ5z0iqWx2N9jo,13743
|
|
32
|
-
odoo/addons/mail_gateway/static/src/components/chatter/chatter.xml,sha256=JW2_q_ip5QcG8nXMotlFwI-c4-eGOIEfRwObZfc88AE,2037
|
|
33
|
-
odoo/addons/mail_gateway/static/src/components/composer/composer.xml,sha256=m8yLBcIFK5thG9L-5UQGylh90aDDhjcv0vei_IC-s8c,772
|
|
34
|
-
odoo/addons/mail_gateway/static/src/components/discuss_sidebar/discuss_sidebar.xml,sha256=ZI0ZD_RO3PGAEYnGmoafJeBYVWnegZYwj8xJR9CEb6I,668
|
|
35
|
-
odoo/addons/mail_gateway/static/src/components/gateway_follower/gateway_follower.esm.js,sha256=OcuUgXheEIyxDcQUCqLJ7GUvM59fc5V8N4zfnllCLJw,804
|
|
36
|
-
odoo/addons/mail_gateway/static/src/components/gateway_follower/gateway_follower.scss,sha256=Xg54rrxbTmbcsFLUaCMR1EDI2-KAmd20tWzeCSzy94M,234
|
|
37
|
-
odoo/addons/mail_gateway/static/src/components/gateway_follower/gateway_follower.xml,sha256=PkWbQIv5qn2ba0dN-zirG1Pw14G4fpbBH4xBdgK9wQw,1216
|
|
38
|
-
odoo/addons/mail_gateway/static/src/components/message/message.xml,sha256=b1HOwsaVmV6ZB8BipyCNAwl3mJrQtOMtbbiSEHdrcqw,1050
|
|
39
|
-
odoo/addons/mail_gateway/static/src/components/message_notification_popover_content/message_notification_popover_content.xml,sha256=dtHRABkMX5PYHCQbSjDh0RIrgyD-WxpuXMXJYcSKgPs,574
|
|
40
|
-
odoo/addons/mail_gateway/static/src/models/channel.esm.js,sha256=65y-1FOL504Q1cOFMs944-FcAFKDANL35zgCUdtDNr8,1059
|
|
41
|
-
odoo/addons/mail_gateway/static/src/models/channel_member_view.esm.js,sha256=AFkYL-G4L8Eo0KMY1xMZS_w6x9mOAGGbp5F84YnbUzE,1182
|
|
42
|
-
odoo/addons/mail_gateway/static/src/models/chatter.esm.js,sha256=6iuoyUAkziMJWQq5vTPPOvoclMmVTo-GXf8_qRT-s6g,1366
|
|
43
|
-
odoo/addons/mail_gateway/static/src/models/composer.esm.js,sha256=e0QrkMZBttFSrNqp7cYNYWvpxFYwq7cNCqfhlf_-w7A,1028
|
|
44
|
-
odoo/addons/mail_gateway/static/src/models/composer_gateway_follower.esm.js,sha256=09niM7NuZIrmdQGO_z0z2fozQMaT-0jlVXJAnkVfv0s,882
|
|
45
|
-
odoo/addons/mail_gateway/static/src/models/composer_view.esm.js,sha256=Y3PG78IKvbYprZzcyU_R4aMgWCt0D7CKmY1VRq7sIWA,3862
|
|
46
|
-
odoo/addons/mail_gateway/static/src/models/discuss.esm.js,sha256=SlCnMqAIyFLjmLJtYf96af_pphD18WgNRU3zYUOtTmg,1834
|
|
47
|
-
odoo/addons/mail_gateway/static/src/models/discuss_sidebar_category.esm.js,sha256=irT0crrz7j0I6xinBEWfCQFIrvCu5eAJ_LOi7jEEc0Y,3939
|
|
48
|
-
odoo/addons/mail_gateway/static/src/models/discuss_sidebar_category_item.esm.js,sha256=hxWQ7OaP-aUroB3LIZz0JYxFvqH4NEVyGUyKUnVcu14,1637
|
|
49
|
-
odoo/addons/mail_gateway/static/src/models/gateway.esm.js,sha256=gxusrnpnZHw4hPEpHq8OQPyXG5S_lCdjt6Y_LLH48eU,371
|
|
50
|
-
odoo/addons/mail_gateway/static/src/models/gateway_channel.esm.js,sha256=frkA-L5tKf-FP_6mYsGjfkJNXesURjElsfFISTmRpvQ,355
|
|
51
|
-
odoo/addons/mail_gateway/static/src/models/gateway_channel_view.esm.js,sha256=8afiCfxuKAMSrETpsqoA4knLjuXlJm48qOT_5kTa7mI,371
|
|
52
|
-
odoo/addons/mail_gateway/static/src/models/guest.esm.js,sha256=T8Y8opTpL_bTuF1pPHCMFiOXnFUPPScxpRMvGRn_zHM,214
|
|
53
|
-
odoo/addons/mail_gateway/static/src/models/message.esm.js,sha256=tqjH7kmUiYCuy0pkO1dBSa4fVAs7bzTTrT4pJjGjbyI,2222
|
|
54
|
-
odoo/addons/mail_gateway/static/src/models/message_action.esm.js,sha256=DCHl8iMTlNFTNldhT2FZJ9v8g5j7pKsaBZSzdEfA2WE,1439
|
|
55
|
-
odoo/addons/mail_gateway/static/src/models/message_action_list.esm.js,sha256=Byjfu2ZVRP1rea1JbMFzbm97Yw5VyD2PSXqYavO47mg,1227
|
|
56
|
-
odoo/addons/mail_gateway/static/src/models/message_action_view.esm.js,sha256=RS6e5ZUW6hl74rasB89GhZ78SIOU4Avz5xjfBxw2Sj8,3390
|
|
57
|
-
odoo/addons/mail_gateway/static/src/models/message_view.esm.js,sha256=1ul5YN5kjgjuybrVcxARwxG0EP-AvfV2VQiJIDZXeTI,276
|
|
58
|
-
odoo/addons/mail_gateway/static/src/models/messaging_initializer.esm.js,sha256=OA2V3_f38dKgTBj8UoDKEkvGyhTg2u3Wlw4DEU9VrXE,755
|
|
59
|
-
odoo/addons/mail_gateway/static/src/models/notification.esm.js,sha256=OlH1abEKxr-wPZvZRU44sEwH-l93CQISfFCBT9uuUY4,489
|
|
60
|
-
odoo/addons/mail_gateway/static/src/models/partner.esm.js,sha256=yFNCp172TK2cWbVNbN0sRFqosKv57dginh5F15ZC5qA,257
|
|
61
|
-
odoo/addons/mail_gateway/static/src/models/thread.esm.js,sha256=ADxWpuKXiepylLaeo6RXmCndcUdAoK9wSnWXJ_hixR0,2406
|
|
62
|
-
odoo/addons/mail_gateway/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
63
|
-
odoo/addons/mail_gateway/tests/common.py,sha256=Z2pZsKQ9E-pjZK9fgIL9iy9yvgzVD7GwqhbZyZ8VHoU,522
|
|
64
|
-
odoo/addons/mail_gateway/views/mail_gateway.xml,sha256=RAXtGyd8Mi4sOXjT5-d1-Fk3uWEI11dOJEX-JbLkejk,4074
|
|
65
|
-
odoo/addons/mail_gateway/views/res_partner_gateway_channel.xml,sha256=xgjym7um2id6od5P-fj33xmqWJJ_VfDRjd2Q2h3VjcY,2321
|
|
66
|
-
odoo/addons/mail_gateway/wizards/__init__.py,sha256=QMbAicNKcX9KktoqCLdR4jW4Poz-5_HAOWNGJABY-HM,155
|
|
67
|
-
odoo/addons/mail_gateway/wizards/mail_compose_gateway_message.py,sha256=uR1Dj8DTZKV8T_CUR_l5w-HsKKh-9Akhwu5izprFS2M,2416
|
|
68
|
-
odoo/addons/mail_gateway/wizards/mail_compose_gateway_message.xml,sha256=0nSIl1tBLvOqxql-FL829H-RHsPYwFN2HDbzRkaEvEc,1669
|
|
69
|
-
odoo/addons/mail_gateway/wizards/mail_guest_manage.py,sha256=JXxY-riqu7UVkTE-6Vzh0N5lXUqX8N0t2oC0Mnd-hrU,1804
|
|
70
|
-
odoo/addons/mail_gateway/wizards/mail_guest_manage.xml,sha256=6RtuadiKfDvt271uauUdiypzc3CnemeTYkWfRbuWJf4,1293
|
|
71
|
-
odoo/addons/mail_gateway/wizards/mail_message_gateway_link.py,sha256=OLooORQuT9dIEPuui4g5-7Y5I2saecUBdR_mgnmVE0s,1512
|
|
72
|
-
odoo/addons/mail_gateway/wizards/mail_message_gateway_link.xml,sha256=bExiMbt7uxkZJOc9Srxm9B6vvLW494iEI_ZPFKmsuWM,976
|
|
73
|
-
odoo/addons/mail_gateway/wizards/mail_message_gateway_send.py,sha256=P141IdyP8T3uguf3heQf2s0sNQxbIGTNOdvdniq7uqY,600
|
|
74
|
-
odoo/addons/mail_gateway/wizards/mail_message_gateway_send.xml,sha256=bvYSteMZJZDfm9kW1ObcNudw5lTEu-P9Leoncplymy0,1421
|
|
75
|
-
odoo_addon_mail_gateway-16.0.1.3.0.dist-info/METADATA,sha256=nsm-mQsmNry36Ap90iJhjFrnMR0XtWwbYNuBndlthoI,4473
|
|
76
|
-
odoo_addon_mail_gateway-16.0.1.3.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
77
|
-
odoo_addon_mail_gateway-16.0.1.3.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
|
78
|
-
odoo_addon_mail_gateway-16.0.1.3.0.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
odoo
|