odoo-addon-mail-gateway 16.0.1.0.1__py3-none-any.whl → 16.0.1.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.
- odoo/addons/mail_gateway/README.rst +1 -1
- odoo/addons/mail_gateway/__manifest__.py +2 -1
- odoo/addons/mail_gateway/i18n/es.po +306 -3
- odoo/addons/mail_gateway/i18n/it.po +306 -3
- odoo/addons/mail_gateway/i18n/mail_gateway.pot +302 -0
- odoo/addons/mail_gateway/models/res_partner.py +19 -0
- odoo/addons/mail_gateway/security/ir.model.access.csv +1 -0
- odoo/addons/mail_gateway/static/description/index.html +1 -1
- odoo/addons/mail_gateway/static/src/models/composer_view.esm.js +58 -11
- odoo/addons/mail_gateway/wizards/__init__.py +1 -0
- odoo/addons/mail_gateway/wizards/mail_compose_gateway_message.py +75 -0
- odoo/addons/mail_gateway/wizards/mail_compose_gateway_message.xml +43 -0
- {odoo_addon_mail_gateway-16.0.1.0.1.dist-info → odoo_addon_mail_gateway-16.0.1.1.0.1.dist-info}/METADATA +3 -3
- {odoo_addon_mail_gateway-16.0.1.0.1.dist-info → odoo_addon_mail_gateway-16.0.1.1.0.1.dist-info}/RECORD +16 -14
- {odoo_addon_mail_gateway-16.0.1.0.1.dist-info → odoo_addon_mail_gateway-16.0.1.1.0.1.dist-info}/WHEEL +1 -1
- {odoo_addon_mail_gateway-16.0.1.0.1.dist-info → odoo_addon_mail_gateway-16.0.1.1.0.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Copyright 2024 Dixmit
|
|
2
|
+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
3
|
+
|
|
4
|
+
from odoo import fields, models
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class MailComposeGatewayMessage(models.TransientModel):
|
|
8
|
+
_name = "mail.compose.gateway.message"
|
|
9
|
+
_inherit = "mail.compose.message"
|
|
10
|
+
_description = "Mail Compose Gateway Message"
|
|
11
|
+
|
|
12
|
+
wizard_partner_ids = fields.Many2many(
|
|
13
|
+
"res.partner",
|
|
14
|
+
"mail_compose_gateway_message_res_partner_rel",
|
|
15
|
+
"wizard_id",
|
|
16
|
+
"partner_id",
|
|
17
|
+
)
|
|
18
|
+
wizard_channel_ids = fields.Many2many(
|
|
19
|
+
"res.partner.gateway.channel",
|
|
20
|
+
"mail_compose_gateway_message_gateway_channel_rel",
|
|
21
|
+
"wizard_id",
|
|
22
|
+
"channel_id",
|
|
23
|
+
)
|
|
24
|
+
attachment_ids = fields.Many2many(
|
|
25
|
+
"ir.attachment",
|
|
26
|
+
"mail_compose_gateway_message_ir_attachments_rel",
|
|
27
|
+
"wizard_id",
|
|
28
|
+
"attachment_id",
|
|
29
|
+
"Attachments",
|
|
30
|
+
)
|
|
31
|
+
partner_ids = fields.Many2many(
|
|
32
|
+
"res.partner",
|
|
33
|
+
"mail_compose_gateway_message_res_partner_rel",
|
|
34
|
+
"wizard_id",
|
|
35
|
+
"partner_id",
|
|
36
|
+
"Additional Contacts",
|
|
37
|
+
domain=lambda r: r._partner_ids_domain(),
|
|
38
|
+
)
|
|
39
|
+
# Dummy compatibility with other OCA modules
|
|
40
|
+
# OCA/mail_attach_existing_attachment
|
|
41
|
+
object_attachment_ids = fields.Many2many(
|
|
42
|
+
comodel_name="ir.attachment",
|
|
43
|
+
relation="mail_compose_gateway_message_ir_attachments_object_rel",
|
|
44
|
+
column1="wizard_id",
|
|
45
|
+
column2="attachment_id",
|
|
46
|
+
string="Object Attachments",
|
|
47
|
+
)
|
|
48
|
+
# OCA/mail_composer_cc_bcc
|
|
49
|
+
partner_cc_ids = fields.Many2many(
|
|
50
|
+
comodel_name="res.partner",
|
|
51
|
+
relation="mail_compose_gateway_message_res_partner_cc_rel",
|
|
52
|
+
column1="wizard_id",
|
|
53
|
+
column2="partner_id",
|
|
54
|
+
string="Cc",
|
|
55
|
+
)
|
|
56
|
+
partner_bcc_ids = fields.Many2many(
|
|
57
|
+
comodel_name="res.partner",
|
|
58
|
+
relation="mail_compose_gateway_message_res_partner_bcc_rel",
|
|
59
|
+
column1="wizard_id",
|
|
60
|
+
column2="partner_id",
|
|
61
|
+
string="Bcc",
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
def get_mail_values(self, res_ids):
|
|
65
|
+
self.ensure_one()
|
|
66
|
+
res = super(MailComposeGatewayMessage, self).get_mail_values(res_ids)
|
|
67
|
+
res[res_ids[0]]["gateway_notifications"] = [
|
|
68
|
+
{
|
|
69
|
+
"partner_id": channel.partner_id.id,
|
|
70
|
+
"channel_type": "gateway",
|
|
71
|
+
"gateway_channel_id": channel.id,
|
|
72
|
+
}
|
|
73
|
+
for channel in self.wizard_channel_ids
|
|
74
|
+
]
|
|
75
|
+
return res
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<!-- Copyright 2024 Dixmit
|
|
3
|
+
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
|
|
4
|
+
<odoo>
|
|
5
|
+
|
|
6
|
+
<record model="ir.ui.view" id="mail_compose_gateway_message_form_view">
|
|
7
|
+
<field name="model">mail.compose.gateway.message</field>
|
|
8
|
+
<field name="inherit_id" ref="mail.email_compose_message_wizard_form" />
|
|
9
|
+
<field name="mode">primary</field>
|
|
10
|
+
<field name="arch" type="xml">
|
|
11
|
+
<label for="partner_ids" position="attributes">
|
|
12
|
+
<attribute name="invisible">1</attribute>
|
|
13
|
+
</label>
|
|
14
|
+
<field name="partner_ids" position="attributes">
|
|
15
|
+
<attribute name="invisible">1</attribute>
|
|
16
|
+
</field>
|
|
17
|
+
<field name="subject" position="before">
|
|
18
|
+
<field name="wizard_partner_ids" invisible="1" />
|
|
19
|
+
<field
|
|
20
|
+
name="wizard_channel_ids"
|
|
21
|
+
string="Gateways"
|
|
22
|
+
widget="many2many_tags"
|
|
23
|
+
context="{'mail_gateway_partner_info': 1}"
|
|
24
|
+
domain="[('partner_id', 'in', wizard_partner_ids)]"
|
|
25
|
+
/>
|
|
26
|
+
</field>
|
|
27
|
+
<field name="subject" position="attributes">
|
|
28
|
+
<attribute name="invisible">1</attribute>
|
|
29
|
+
<attribute name="required">0</attribute>
|
|
30
|
+
</field>
|
|
31
|
+
<xpath
|
|
32
|
+
expr="//span[@name='document_followers_text']/.."
|
|
33
|
+
position="attributes"
|
|
34
|
+
>
|
|
35
|
+
<attribute name="invisible">1</attribute>
|
|
36
|
+
<attribute name="attrs" />
|
|
37
|
+
</xpath>
|
|
38
|
+
</field>
|
|
39
|
+
</record>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</odoo>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-mail_gateway
|
|
3
|
-
Version: 16.0.1.0.1
|
|
3
|
+
Version: 16.0.1.1.0.1
|
|
4
4
|
Summary: Set a gateway
|
|
5
5
|
Home-page: https://github.com/OCA/social
|
|
6
6
|
Author: Creu Blanca,Dixmit,Odoo Community Association (OCA)
|
|
@@ -11,7 +11,7 @@ Classifier: Framework :: Odoo
|
|
|
11
11
|
Classifier: Framework :: Odoo :: 16.0
|
|
12
12
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
13
13
|
Requires-Python: >=3.10
|
|
14
|
-
Requires-Dist: odoo
|
|
14
|
+
Requires-Dist: odoo<16.1dev,>=16.0a
|
|
15
15
|
|
|
16
16
|
============
|
|
17
17
|
Mail Gateway
|
|
@@ -22,7 +22,7 @@ Mail Gateway
|
|
|
22
22
|
!! This file is generated by oca-gen-addon-readme !!
|
|
23
23
|
!! changes will be overwritten. !!
|
|
24
24
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
25
|
-
!! source digest: sha256:
|
|
25
|
+
!! source digest: sha256:3783213eb7b4ecae55a769a1f14e1ed6440173fa41bc473b6e9b055a691ea4aa
|
|
26
26
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
27
27
|
|
|
28
28
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
odoo/addons/mail_gateway/README.rst,sha256=
|
|
1
|
+
odoo/addons/mail_gateway/README.rst,sha256=uH-eped5ynTepSapG6-J0OfINZy1pzUGQv5GPVqanTY,3807
|
|
2
2
|
odoo/addons/mail_gateway/__init__.py,sha256=aIwynWdyzP-khr64it84qR6aLsV3nt93saACZSgoJ7w,128
|
|
3
|
-
odoo/addons/mail_gateway/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/mail_gateway/__manifest__.py,sha256=U_bIllZX231dJwEia3tIr9FSaV0md1wQ7SK1F-wUrl8,1339
|
|
4
4
|
odoo/addons/mail_gateway/hooks.py,sha256=gNJ9Vw1vGd1mjdP_9iNmaPfHhun6kJT_DUR9oZjULyM,338
|
|
5
5
|
odoo/addons/mail_gateway/controllers/__init__.py,sha256=jytg2ehJRiv4skWOQoHQN0l7zCIHKSH_bF8tmsIzyLE,44
|
|
6
6
|
odoo/addons/mail_gateway/controllers/discuss.py,sha256=QNrwrGzWl85o8on8Yk81C6q0CyswzQ3Na2E6_32H8aE,383
|
|
7
7
|
odoo/addons/mail_gateway/controllers/gateway.py,sha256=PvsfRTL_ZrA_yhKpibLNSn6idOD2whEMuTV_V3gh990,2777
|
|
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=1ZliuMvQ_xn97XzAs5x23wHTrbNrpEoE_QXEkk7kz4U,30703
|
|
9
|
+
odoo/addons/mail_gateway/i18n/it.po,sha256=Laf_BmONSxLkleswO-AWUMmpU5DdWZKcx_ZDw9KKehY,32197
|
|
10
|
+
odoo/addons/mail_gateway/i18n/mail_gateway.pot,sha256=sToZwwrrtIN4G8bBMgoosjCBSuSL-oFcIQz2L008Cks,30099
|
|
11
11
|
odoo/addons/mail_gateway/models/__init__.py,sha256=PYOJ6C-9Wfi5ocaXzWMJYgjNTLmxMRpFdFOCxSWQecc,277
|
|
12
12
|
odoo/addons/mail_gateway/models/ir_websocket.py,sha256=8UgstHwBuptksLy_FvJPpq5bTUpZw_b8Jn8FbBrEAiw,706
|
|
13
13
|
odoo/addons/mail_gateway/models/mail_channel.py,sha256=U8s_sUEg571HJ9V1QbInvE3bNCz9ov7UNbT_0_aqQP8,2869
|
|
@@ -17,17 +17,17 @@ odoo/addons/mail_gateway/models/mail_guest.py,sha256=J9pvvxSibQVjcJEpP36QZXE_67a
|
|
|
17
17
|
odoo/addons/mail_gateway/models/mail_message.py,sha256=3JQuKrcfqJLdZpkKFsx3QbG-54XL7FDCpViY6lRGm0Q,4680
|
|
18
18
|
odoo/addons/mail_gateway/models/mail_notification.py,sha256=A964ujvJ51qEXXIsFJxJ5l-bI8vJHndHRQ5nouDItjk,1640
|
|
19
19
|
odoo/addons/mail_gateway/models/mail_thread.py,sha256=nTTy6H0TUbOrOCH_WaQZ9Vncz4wBcwgLxl36sycsv98,3731
|
|
20
|
-
odoo/addons/mail_gateway/models/res_partner.py,sha256=
|
|
20
|
+
odoo/addons/mail_gateway/models/res_partner.py,sha256=Z0xl4D-ELsNEiiBOkJezy2Opu-zNT5S2XWwA6i5Nmqs,3515
|
|
21
21
|
odoo/addons/mail_gateway/models/res_users.py,sha256=PJxVRqICXOKASaJ43EsyjCX5_nJKpTZ0dcF-rx5HNHk,392
|
|
22
22
|
odoo/addons/mail_gateway/readme/CONFIGURATION.rst,sha256=u4AuXP5LvuOYd3TsNozoBqgMJNLjaA_ZcgP62nY54Bo,199
|
|
23
23
|
odoo/addons/mail_gateway/readme/CONTRIBUTORS.rst,sha256=lDMxykpCzOx4vkXTCPMNb8B5YmZH6N5FnmNSzRgHaR4,29
|
|
24
24
|
odoo/addons/mail_gateway/readme/CREDITS.rst,sha256=ulhmf4S0p_-Gelh612hRrUt9upyYqeyE85O8pCom-1A,93
|
|
25
25
|
odoo/addons/mail_gateway/readme/DESCRIPTION.rst,sha256=0N8FYy0NUUuZ_SBOQBFObofZTelGlT_VRFVyf2bGcNA,377
|
|
26
26
|
odoo/addons/mail_gateway/readme/USAGE.rst,sha256=oIFvEwsDa3p1H85uTCKFtW1zHO9Y5h4F0TD_bVydG5I,623
|
|
27
|
-
odoo/addons/mail_gateway/security/ir.model.access.csv,sha256=
|
|
27
|
+
odoo/addons/mail_gateway/security/ir.model.access.csv,sha256=FOT8arYtpenpbxWo0qYeb5FN_nGfpCtY4A4y8iOT79E,1079
|
|
28
28
|
odoo/addons/mail_gateway/security/security.xml,sha256=DwEPzbePb5q6TaaOuEtBIC2iLW5gvyXFEfFNyDXCBgQ,2883
|
|
29
29
|
odoo/addons/mail_gateway/static/description/icon.png,sha256=oJUSI4t4BOGKGTvPJURptNJVoX1tYOK4oNzcS0ysedI,26508
|
|
30
|
-
odoo/addons/mail_gateway/static/description/index.html,sha256=
|
|
30
|
+
odoo/addons/mail_gateway/static/description/index.html,sha256=K3gXmqeDExDFl9xmDZ0aaxpNjsDMQ9Pi7L1gkw_LWsI,13518
|
|
31
31
|
odoo/addons/mail_gateway/static/src/components/chatter/chatter.xml,sha256=JW2_q_ip5QcG8nXMotlFwI-c4-eGOIEfRwObZfc88AE,2037
|
|
32
32
|
odoo/addons/mail_gateway/static/src/components/composer/composer.xml,sha256=m8yLBcIFK5thG9L-5UQGylh90aDDhjcv0vei_IC-s8c,772
|
|
33
33
|
odoo/addons/mail_gateway/static/src/components/discuss_sidebar/discuss_sidebar.xml,sha256=ZI0ZD_RO3PGAEYnGmoafJeBYVWnegZYwj8xJR9CEb6I,668
|
|
@@ -41,7 +41,7 @@ odoo/addons/mail_gateway/static/src/models/channel_member_view.esm.js,sha256=AFk
|
|
|
41
41
|
odoo/addons/mail_gateway/static/src/models/chatter.esm.js,sha256=6iuoyUAkziMJWQq5vTPPOvoclMmVTo-GXf8_qRT-s6g,1366
|
|
42
42
|
odoo/addons/mail_gateway/static/src/models/composer.esm.js,sha256=e0QrkMZBttFSrNqp7cYNYWvpxFYwq7cNCqfhlf_-w7A,1028
|
|
43
43
|
odoo/addons/mail_gateway/static/src/models/composer_gateway_follower.esm.js,sha256=09niM7NuZIrmdQGO_z0z2fozQMaT-0jlVXJAnkVfv0s,882
|
|
44
|
-
odoo/addons/mail_gateway/static/src/models/composer_view.esm.js,sha256=
|
|
44
|
+
odoo/addons/mail_gateway/static/src/models/composer_view.esm.js,sha256=Y3PG78IKvbYprZzcyU_R4aMgWCt0D7CKmY1VRq7sIWA,3862
|
|
45
45
|
odoo/addons/mail_gateway/static/src/models/discuss.esm.js,sha256=SlCnMqAIyFLjmLJtYf96af_pphD18WgNRU3zYUOtTmg,1834
|
|
46
46
|
odoo/addons/mail_gateway/static/src/models/discuss_sidebar_category.esm.js,sha256=irT0crrz7j0I6xinBEWfCQFIrvCu5eAJ_LOi7jEEc0Y,3939
|
|
47
47
|
odoo/addons/mail_gateway/static/src/models/discuss_sidebar_category_item.esm.js,sha256=hxWQ7OaP-aUroB3LIZz0JYxFvqH4NEVyGUyKUnVcu14,1637
|
|
@@ -62,14 +62,16 @@ odoo/addons/mail_gateway/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
62
62
|
odoo/addons/mail_gateway/tests/common.py,sha256=Z2pZsKQ9E-pjZK9fgIL9iy9yvgzVD7GwqhbZyZ8VHoU,522
|
|
63
63
|
odoo/addons/mail_gateway/views/mail_gateway.xml,sha256=RAXtGyd8Mi4sOXjT5-d1-Fk3uWEI11dOJEX-JbLkejk,4074
|
|
64
64
|
odoo/addons/mail_gateway/views/res_partner_gateway_channel.xml,sha256=xgjym7um2id6od5P-fj33xmqWJJ_VfDRjd2Q2h3VjcY,2321
|
|
65
|
-
odoo/addons/mail_gateway/wizards/__init__.py,sha256=
|
|
65
|
+
odoo/addons/mail_gateway/wizards/__init__.py,sha256=QMbAicNKcX9KktoqCLdR4jW4Poz-5_HAOWNGJABY-HM,155
|
|
66
|
+
odoo/addons/mail_gateway/wizards/mail_compose_gateway_message.py,sha256=uR1Dj8DTZKV8T_CUR_l5w-HsKKh-9Akhwu5izprFS2M,2416
|
|
67
|
+
odoo/addons/mail_gateway/wizards/mail_compose_gateway_message.xml,sha256=0nSIl1tBLvOqxql-FL829H-RHsPYwFN2HDbzRkaEvEc,1669
|
|
66
68
|
odoo/addons/mail_gateway/wizards/mail_guest_manage.py,sha256=JXxY-riqu7UVkTE-6Vzh0N5lXUqX8N0t2oC0Mnd-hrU,1804
|
|
67
69
|
odoo/addons/mail_gateway/wizards/mail_guest_manage.xml,sha256=6RtuadiKfDvt271uauUdiypzc3CnemeTYkWfRbuWJf4,1293
|
|
68
70
|
odoo/addons/mail_gateway/wizards/mail_message_gateway_link.py,sha256=Aomm0WHmTikx03l9ZCn1QEKMmOc0UGSbvoRSaLGni4k,1505
|
|
69
71
|
odoo/addons/mail_gateway/wizards/mail_message_gateway_link.xml,sha256=bExiMbt7uxkZJOc9Srxm9B6vvLW494iEI_ZPFKmsuWM,976
|
|
70
72
|
odoo/addons/mail_gateway/wizards/mail_message_gateway_send.py,sha256=P141IdyP8T3uguf3heQf2s0sNQxbIGTNOdvdniq7uqY,600
|
|
71
73
|
odoo/addons/mail_gateway/wizards/mail_message_gateway_send.xml,sha256=bvYSteMZJZDfm9kW1ObcNudw5lTEu-P9Leoncplymy0,1421
|
|
72
|
-
odoo_addon_mail_gateway-16.0.1.0.1.dist-info/METADATA,sha256=
|
|
73
|
-
odoo_addon_mail_gateway-16.0.1.0.1.dist-info/WHEEL,sha256=
|
|
74
|
-
odoo_addon_mail_gateway-16.0.1.0.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
|
75
|
-
odoo_addon_mail_gateway-16.0.1.0.1.dist-info/RECORD,,
|
|
74
|
+
odoo_addon_mail_gateway-16.0.1.1.0.1.dist-info/METADATA,sha256=dMw5kFbQ49WrdBMKKIBSYzPC7iS_iTHS7s_P4kzcVL4,4310
|
|
75
|
+
odoo_addon_mail_gateway-16.0.1.1.0.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
|
76
|
+
odoo_addon_mail_gateway-16.0.1.1.0.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
|
77
|
+
odoo_addon_mail_gateway-16.0.1.1.0.1.dist-info/RECORD,,
|
|
File without changes
|