+
Partner Disable Gravatar
+
+
+
+
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.
+
Table of contents
+
+
+
+
No configuration required. Installing the module will disable the automatic connection to gravatar.com.
+
+
+
+
Bugs are tracked on GitHub Issues.
+In case of trouble, please check there if your issue has already been reported.
+If you spotted it first, help us smashing it by providing a detailed and welcomed
+feedback.
+
Do not contact contributors directly about support or help with technical issues.
+
+
+
+
+
+
+
+
This module is maintained by the OCA.
+
+
OCA, or the Odoo Community Association, is a nonprofit organization whose
+mission is to support the collaborative development of Odoo features and
+promote its widespread use.
+
Current maintainer:
+
+
This module is part of the OCA/partner-contact project on GitHub.
+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
+
+
+
+
+
diff --git a/partner_disable_gravatar/tests/__init__.py b/partner_disable_gravatar/tests/__init__.py
new file mode 100644
index 0000000..2485d11
--- /dev/null
+++ b/partner_disable_gravatar/tests/__init__.py
@@ -0,0 +1 @@
+from . import test_partner_disable_gravatar
diff --git a/partner_disable_gravatar/tests/test_partner_disable_gravatar.py b/partner_disable_gravatar/tests/test_partner_disable_gravatar.py
new file mode 100644
index 0000000..3c543a2
--- /dev/null
+++ b/partner_disable_gravatar/tests/test_partner_disable_gravatar.py
@@ -0,0 +1,17 @@
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
+
+from flectra.tests import Form, common
+
+
+class TestPartnerDisableGravatar(common.TransactionCase):
+
+ # https://github.com/flectra/flectra/blob/
+ # 28034c48c024284ea3bd6248451e186132aca4d0/flectra/tests/common.py#L407
+ def patch(self, obj, key, val):
+ pass
+
+ def test_disable_gravatar(self):
+ with Form(self.env["res.partner"]) as f1:
+ f1.name = "Support Gravatar"
+ f1.email = "support@gravatar.com"
+ self.assertFalse(f1.image_1920)
diff --git a/partner_manual_rank/COPYRIGHT b/partner_manual_rank/COPYRIGHT
new file mode 100644
index 0000000..dd53209
--- /dev/null
+++ b/partner_manual_rank/COPYRIGHT
@@ -0,0 +1,16 @@
+Most of the files are
+
+ :Copyright: This stylesheet has been placed in the public domain.
+ Copyright 2021 ForgeFlow S.L.
+ Copyright 2021 ForgeFlow, S.L.
+ Copyright 2018 Flectra Community
+
+Many files also contain contributions from third
+parties. In this case the original copyright of
+the contributions can be traced through the
+history of the source version control system.
+
+When that is not the case, the files contain a prominent
+notice stating the original copyright and applicable
+license, or come with their own dedicated COPYRIGHT
+and/or LICENSE file.
\ No newline at end of file
diff --git a/partner_manual_rank/LICENSE b/partner_manual_rank/LICENSE
new file mode 100644
index 0000000..3939cd9
--- /dev/null
+++ b/partner_manual_rank/LICENSE
@@ -0,0 +1,663 @@
+For copyright information, please see the COPYRIGHT file.
+
+GNU AFFERO GENERAL PUBLIC LICENSE
+ Version 3, 19 November 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.