From 5329fefb659c8e1bcc9c2871ea8ec1dd855e675b Mon Sep 17 00:00:00 2001 From: Lanto R <124650562+lanto-razafindrabe@users.noreply.github.com> Date: Mon, 11 Sep 2023 18:52:07 +0300 Subject: [PATCH] TA#56200 [ADD] admin_light_mail_outlook, admin_light_mail_gmail (#821) --- addons/admin_light_mail_gmail/README.rst | 11 +++++++++++ addons/admin_light_mail_gmail/__init__.py | 4 ++++ addons/admin_light_mail_gmail/__manifest__.py | 17 +++++++++++++++++ addons/admin_light_mail_gmail/i18n/fr.po | 18 ++++++++++++++++++ .../admin_light_mail_gmail/models/__init__.py | 4 ++++ .../models/google_gmail_mixin.py | 17 +++++++++++++++++ .../static/description/icon.png | Bin 0 -> 7982 bytes addons/admin_light_mail_outlook/README.rst | 11 +++++++++++ addons/admin_light_mail_outlook/__init__.py | 4 ++++ .../admin_light_mail_outlook/__manifest__.py | 17 +++++++++++++++++ addons/admin_light_mail_outlook/i18n/fr.po | 18 ++++++++++++++++++ .../models/__init__.py | 4 ++++ .../models/microsoft_outlook_mixin.py | 16 ++++++++++++++++ .../static/description/icon.png | Bin 0 -> 7982 bytes 14 files changed, 141 insertions(+) create mode 100644 addons/admin_light_mail_gmail/README.rst create mode 100644 addons/admin_light_mail_gmail/__init__.py create mode 100644 addons/admin_light_mail_gmail/__manifest__.py create mode 100644 addons/admin_light_mail_gmail/i18n/fr.po create mode 100644 addons/admin_light_mail_gmail/models/__init__.py create mode 100644 addons/admin_light_mail_gmail/models/google_gmail_mixin.py create mode 100644 addons/admin_light_mail_gmail/static/description/icon.png create mode 100644 addons/admin_light_mail_outlook/README.rst create mode 100644 addons/admin_light_mail_outlook/__init__.py create mode 100644 addons/admin_light_mail_outlook/__manifest__.py create mode 100644 addons/admin_light_mail_outlook/i18n/fr.po create mode 100644 addons/admin_light_mail_outlook/models/__init__.py create mode 100644 addons/admin_light_mail_outlook/models/microsoft_outlook_mixin.py create mode 100644 addons/admin_light_mail_outlook/static/description/icon.png diff --git a/addons/admin_light_mail_gmail/README.rst b/addons/admin_light_mail_gmail/README.rst new file mode 100644 index 00000000..ec454f32 --- /dev/null +++ b/addons/admin_light_mail_gmail/README.rst @@ -0,0 +1,11 @@ +Admin Light Mail Gmail +====================== +This module extends Administration Light/Mail Servers rights to handle fetchmail_gmail functionalities. +It manages access to the new Gmail fields and add them to the existing `Administration (Light) / Mail Servers` right group. + +As a user with `Administration (Light) / Mail Servers` rights. +I go to an incoming or outgoing email servers submenu of `Administration > Email`. I see that I have sufficient rights to access it. + +Contributors +------------ +* Numigi (tm) and all its contributors (https://bit.ly/numigiens) diff --git a/addons/admin_light_mail_gmail/__init__.py b/addons/admin_light_mail_gmail/__init__.py new file mode 100644 index 00000000..96b9372f --- /dev/null +++ b/addons/admin_light_mail_gmail/__init__.py @@ -0,0 +1,4 @@ +# © 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/addons/admin_light_mail_gmail/__manifest__.py b/addons/admin_light_mail_gmail/__manifest__.py new file mode 100644 index 00000000..bb5dd501 --- /dev/null +++ b/addons/admin_light_mail_gmail/__manifest__.py @@ -0,0 +1,17 @@ +# © 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Admin Light Mail Gmail", + "version": "1.0.0", + "author": "Numigi", + "maintainer": "Numigi", + "website": "https://bit.ly/numigi-com", + "license": "AGPL-3", + 'category': 'Other', + "depends": ["admin_light_mail", "fetchmail_gmail"], + "summary": """Extends Administration Light/Mail Servers rights to handle + fetchmail_gmail functionalities.""", + "data": [], + "installable": True, +} diff --git a/addons/admin_light_mail_gmail/i18n/fr.po b/addons/admin_light_mail_gmail/i18n/fr.po new file mode 100644 index 00000000..e8717e3c --- /dev/null +++ b/addons/admin_light_mail_gmail/i18n/fr.po @@ -0,0 +1,18 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * admin_light_mail_gmail +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-12 17:50+0000\n" +"PO-Revision-Date: 2019-08-12 13:51-0400\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 2.0.6\n" diff --git a/addons/admin_light_mail_gmail/models/__init__.py b/addons/admin_light_mail_gmail/models/__init__.py new file mode 100644 index 00000000..73bfd406 --- /dev/null +++ b/addons/admin_light_mail_gmail/models/__init__.py @@ -0,0 +1,4 @@ +# © 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import google_gmail_mixin diff --git a/addons/admin_light_mail_gmail/models/google_gmail_mixin.py b/addons/admin_light_mail_gmail/models/google_gmail_mixin.py new file mode 100644 index 00000000..809990af --- /dev/null +++ b/addons/admin_light_mail_gmail/models/google_gmail_mixin.py @@ -0,0 +1,17 @@ +# © 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + +AUTHORIZED_GROUPS = "base.group_system,admin_light_mail.group_email_server" + + +class GoogleGmailMixin(models.AbstractModel): + _inherit = 'google.gmail.mixin' + + google_gmail_authorization_code = fields.Char(groups=AUTHORIZED_GROUPS) + google_gmail_refresh_token = fields.Char(groups=AUTHORIZED_GROUPS) + google_gmail_access_token = fields.Char(groups=AUTHORIZED_GROUPS) + google_gmail_access_token_expiration = fields.Integer( + groups=AUTHORIZED_GROUPS) + google_gmail_uri = fields.Char(groups=AUTHORIZED_GROUPS) diff --git a/addons/admin_light_mail_gmail/static/description/icon.png b/addons/admin_light_mail_gmail/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..92a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J7Foyk?`IQb9P2${SB;C-naY1IqJhi*;OlwT zW!Su+SoW^Gz){)`{_o{J&82=C^36pS)8ov4Wzbom#y`DZdR)1XDYyBqN{A;lWt824Qy4sdgF&_7LYW8~r5dO9cH_xgla`oL46ipy48D;PP6_V}$ z9A|MGEH>QvBgiy&ar&5J>wYr#PG>`7mDsD6+ZfvJ84-?Cw>HX&jcHO!{+D#f)J>WF zs=Xh?UL#HJHBKm#UTn@1e@^qmMceYh!`2E1k0Zf0E)zuV3E2WAW ztmu=qjyIs-bnmR4RZlQd5?^Q+$p5JG&1OS;#Ljqg>!;tKRD@X1>b7?>r@#Pfr%RYO_TPQKe|%g!Y$P_Wz3@(H74|VklAKn?bLwZOminV66`?3K1S%%H z#Q{Wpu4zRsPR?jrfFvCYi+Sli@IoTIoK>7&Ig Email`. I see that I have sufficient rights to access it. + +Contributors +------------ +* Numigi (tm) and all its contributors (https://bit.ly/numigiens) diff --git a/addons/admin_light_mail_outlook/__init__.py b/addons/admin_light_mail_outlook/__init__.py new file mode 100644 index 00000000..96b9372f --- /dev/null +++ b/addons/admin_light_mail_outlook/__init__.py @@ -0,0 +1,4 @@ +# © 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/addons/admin_light_mail_outlook/__manifest__.py b/addons/admin_light_mail_outlook/__manifest__.py new file mode 100644 index 00000000..d6f184b2 --- /dev/null +++ b/addons/admin_light_mail_outlook/__manifest__.py @@ -0,0 +1,17 @@ +# © 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Admin Light Mail Outlook", + "version": "1.0.0", + "author": "Numigi", + "maintainer": "Numigi", + "website": "https://bit.ly/numigi-com", + "license": "AGPL-3", + 'category': 'Other', + "depends": ["admin_light_mail", "fetchmail_outlook"], + "summary": """Extends Administration Light/Mail Servers rights to handle + fetchmail_outlook functionalities.""", + "data": [], + "installable": True, +} diff --git a/addons/admin_light_mail_outlook/i18n/fr.po b/addons/admin_light_mail_outlook/i18n/fr.po new file mode 100644 index 00000000..233d50e5 --- /dev/null +++ b/addons/admin_light_mail_outlook/i18n/fr.po @@ -0,0 +1,18 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * admin_light_mail_outlook +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-12 17:50+0000\n" +"PO-Revision-Date: 2019-08-12 13:51-0400\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 2.0.6\n" diff --git a/addons/admin_light_mail_outlook/models/__init__.py b/addons/admin_light_mail_outlook/models/__init__.py new file mode 100644 index 00000000..c0d2a76a --- /dev/null +++ b/addons/admin_light_mail_outlook/models/__init__.py @@ -0,0 +1,4 @@ +# © 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import microsoft_outlook_mixin diff --git a/addons/admin_light_mail_outlook/models/microsoft_outlook_mixin.py b/addons/admin_light_mail_outlook/models/microsoft_outlook_mixin.py new file mode 100644 index 00000000..228d9b18 --- /dev/null +++ b/addons/admin_light_mail_outlook/models/microsoft_outlook_mixin.py @@ -0,0 +1,16 @@ +# © 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + +AUTHORIZED_GROUPS = "base.group_system,admin_light_mail.group_email_server" + + +class MicrosoftOutlookMixin(models.AbstractModel): + _inherit = 'microsoft.outlook.mixin' + + microsoft_outlook_refresh_token = fields.Char(groups=AUTHORIZED_GROUPS) + microsoft_outlook_access_token = fields.Char(groups=AUTHORIZED_GROUPS) + microsoft_outlook_access_token_expiration = fields.Integer( + groups=AUTHORIZED_GROUPS) + microsoft_outlook_uri = fields.Char(groups=AUTHORIZED_GROUPS) diff --git a/addons/admin_light_mail_outlook/static/description/icon.png b/addons/admin_light_mail_outlook/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..92a86b10ed6e2f6a40b286805c8c92c5dc775111 GIT binary patch literal 7982 zcmZ{JcT`hP&~|8{N-v>E2LV9>1VMTUA@piNr33;J6%hgHy+aTJ(jvVn(iBmVA|dn+ z0YMN#k=~_u-u%A*zVn{<+_QJ??A)21d(ZRC?w*Y^H`TvJ$3q7I0InIpp_U}s_g|v{ zlJ1(q#=9gz`9#}98vyv6M1PK;BI$xoa7z;az+W5y2#o{)PDx#%D*%8u7ywvv002}n z0RXO-+4UA`Bm>aVNFNHg`tQnbdY?+_p?wLr@dN@j@tl+u*NINe-JYMh}T{wK9o$9;9EoMEv#W*!G zAxAB6c*j9R9W}>jonUZya^{Wr!ojHgd?A*%X8Z9Cf;HW`WJOw9vP{G#g;Y(`oIi@* z4a=_w_irmKAD!$!aq+J&FE`Dx|5ax7{$q;+xENNn#sKIWsMyZ<{%~Q~T&jL+rDg3a z@5h1r-aR1Q6yT6o-gO_q0rT4eK1%;#VVFR^N{&PhSPqJ+chXR9W_UnRQK18lHXH(c z1BASeVRAG6bJ<-JXC;LouW?NxXxGo2k(p650uHHOLutM=ZUpj3wex}Lr+|;I1v1rv z>IN?CB|QwS+A^!YB_uoh%zEPra1qmfBC#!EKp%IzVKWPKVSWK!aW_J62Q$rvTDv z!z@E)H=&#clBR_&m=a^bUJqOejm?rR;yt(qlrpRpTR7IOw!=9q?C>m7I%=&Z52KT; zm7W@=@VLNx$Q_K-;~IXCnmxm5N*SWue&DYsCOhYLr9B5TgadWb?>L0a zlKXewF-V=$En+S?kpBbqPyLF^+R9G6%iyPNu=jjc7rt%js{0r@ufqHe)>V_;#jXI_ z#X}13-yj?Gn0aJwESsu|2q#j_LL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