From abbef42f8c535b66d2f4b9606457acfe4c911b5c Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 31 Jan 2019 23:44:37 +0100 Subject: [PATCH] [MIG] partner_disable_gravatar from v10 to v12 --- partner_disable_gravatar/__init__.py | 2 -- partner_disable_gravatar/__manifest__.py | 6 +++--- partner_disable_gravatar/models/__init__.py | 2 -- partner_disable_gravatar/models/partner.py | 4 ++-- partner_disable_gravatar/readme/CONFIGURE.rst | 1 + partner_disable_gravatar/readme/CONTRIBUTORS.rst | 1 + partner_disable_gravatar/readme/DESCRIPTION.rst | 9 +++++++++ 7 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 partner_disable_gravatar/readme/CONFIGURE.rst create mode 100644 partner_disable_gravatar/readme/CONTRIBUTORS.rst create mode 100644 partner_disable_gravatar/readme/DESCRIPTION.rst diff --git a/partner_disable_gravatar/__init__.py b/partner_disable_gravatar/__init__.py index cde864bae..0650744f6 100644 --- a/partner_disable_gravatar/__init__.py +++ b/partner_disable_gravatar/__init__.py @@ -1,3 +1 @@ -# -*- coding: utf-8 -*- - from . import models diff --git a/partner_disable_gravatar/__manifest__.py b/partner_disable_gravatar/__manifest__.py index c5b867303..78300999b 100644 --- a/partner_disable_gravatar/__manifest__.py +++ b/partner_disable_gravatar/__manifest__.py @@ -1,10 +1,10 @@ -# -*- coding: utf-8 -*- -# Copyright 2018 Akretion (Alexis de Lattre ) +# Copyright 2018-2019 Akretion France (https://akretion.com/) +# @author: Alexis de Lattre # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Partner Disable Gravatar', - 'version': '10.0.1.0.0', + 'version': '12.0.1.0.0', 'category': 'Tools', 'license': 'AGPL-3', 'summary': 'Disable automatic connection to gravatar.com', diff --git a/partner_disable_gravatar/models/__init__.py b/partner_disable_gravatar/models/__init__.py index 61cf8b222..4da81fa31 100644 --- a/partner_disable_gravatar/models/__init__.py +++ b/partner_disable_gravatar/models/__init__.py @@ -1,3 +1 @@ -# -*- coding: utf-8 -*- - from . import partner diff --git a/partner_disable_gravatar/models/partner.py b/partner_disable_gravatar/models/partner.py index b11025a44..246fda73c 100644 --- a/partner_disable_gravatar/models/partner.py +++ b/partner_disable_gravatar/models/partner.py @@ -1,5 +1,5 @@ -# -*- coding: utf-8 -*- -# Copyright 2018 Akretion (Alexis de Lattre ) +# Copyright 2018-2019 Akretion France (https://akretion.com/) +# @author: Alexis de Lattre # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import models diff --git a/partner_disable_gravatar/readme/CONFIGURE.rst b/partner_disable_gravatar/readme/CONFIGURE.rst new file mode 100644 index 000000000..5ad898a52 --- /dev/null +++ b/partner_disable_gravatar/readme/CONFIGURE.rst @@ -0,0 +1 @@ +No configuration required. Installing the module will disable the automatic connection to gravatar.com. diff --git a/partner_disable_gravatar/readme/CONTRIBUTORS.rst b/partner_disable_gravatar/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..ff65d68ce --- /dev/null +++ b/partner_disable_gravatar/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Alexis de Lattre diff --git a/partner_disable_gravatar/readme/DESCRIPTION.rst b/partner_disable_gravatar/readme/DESCRIPTION.rst new file mode 100644 index 000000000..f03be9067 --- /dev/null +++ b/partner_disable_gravatar/readme/DESCRIPTION.rst @@ -0,0 +1,9 @@ +A new feature has been introduced in Odoo v10 in the *base* module: when you enter an email address in the form view of a partner, Odoo will send a query to `gravatar.com `_ to get a picture corresponding to the email address. + +`Gravatar `_, which stands for *Globally Recognized Avatar*, is a website where any user can open an account and register a correspondance between his email address and a picture. That way, his picture/avatar will be automatically set on all websites that are connected to gravatar.com: he won't have to manually configure his picture/avatar on every website. + +In Odoo, when you enter an email address in the form view of a partner (i.e. triggered via the *onchange* on the *email* field) and this partner doesn't have any image yet in Odoo, Odoo will automatically send an HTTPS query to `www.gravatar.com `_ with an MD5 hash of the email of the partner. If it receives an answer from gravatar.com in the form of a picture within the 5 seconds timeout, it will set this picture on the *image* field of the partner in Odoo. + +Some people may consider it as a cool feature to easily get picture on partners with no effort. + +But other people may consider this as an annoying feature that adds unnecessary network trafic or, worse, as a leak of information. With this feature, gravatar.com is notified of all the email addresses added in the Odoo database, so it may be considered as a leak of information to a third party company (gravatar.com is operated by `Automattic Inc. `_, an American company). The problem is that there is no way to disable this feature via a configuration parameter of Odoo. This module brings a solution to this problem: once installed, it disables the feature.