Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncing from upstream OCA/partner-contact (18.0) #1377

Merged
merged 37 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9648987
Add module partner_disable_gravatar
alexis-via Feb 6, 2018
60ac0f5
Update to latest OCA coding conventions
alexis-via Feb 19, 2018
ae5cbc7
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
ca7d032
Update partner_disable_gravatar.pot
oca-travis Jun 18, 2018
6603632
partner_disable_gravatar from v10 to v12
alexis-via Jan 31, 2019
0395861
README.rst
OCA-git-bot Feb 16, 2019
28167ad
Update partner_disable_gravatar.pot
oca-travis Feb 16, 2019
f51a8ea
Update translation files
oca-transbot Mar 3, 2019
8c88e3b
README.rst
OCA-git-bot Jul 29, 2019
c02c362
[IMP] partner_disable_gravatar: black, isort, prettier
skeller1 May 10, 2020
9e4c9ef
[MIG] partner_disable_gravatar: Migration to 13.0
skeller1 May 10, 2020
e9cfcec
[UPD] Update partner_disable_gravatar.pot
oca-travis Jul 20, 2020
4ac1d7d
Translated using Weblate (Portuguese (Brazil))
Aug 12, 2020
be85d88
[MIG] partner_disable_gravatar to v14
alexis-via Dec 14, 2020
fbf401f
partner_disable_gravatar: remove PO and POT files
alexis-via Apr 21, 2021
7d5d036
[UPD] Update partner_disable_gravatar.pot
oca-travis Jul 28, 2021
d1f9734
[UPD] README.rst
OCA-git-bot Jul 28, 2021
befcbe0
Added translation using Weblate (Italian)
primes2h Dec 12, 2021
fe03c3e
Translated using Weblate (Italian)
primes2h Dec 12, 2021
b2644bc
[MIG] partner_disable_gravatar : port from 14.0 to 16.0
legalsylvain Oct 27, 2022
57c4033
[UPD] Update partner_disable_gravatar.pot
Oct 28, 2022
d95d50a
[UPD] README.rst
OCA-git-bot Oct 28, 2022
1606733
Update translation files
weblate Oct 28, 2022
fceedff
Added translation using Weblate (German)
marylla Nov 4, 2022
f410622
Translated using Weblate (German)
marylla Nov 4, 2022
acb3d8d
[UPD] README.rst
OCA-git-bot Sep 3, 2023
c414da0
Added translation using Weblate (French)
remi-filament Nov 6, 2023
eb147aa
Translated using Weblate (French)
remi-filament Nov 6, 2023
597129f
[IMP] partner_disable_gravatar: apply pre-commit auto fixes
remi-filament May 21, 2024
2ae7c90
[MIG] partner_disable_gravatar: Migration to 17.0
remi-filament May 21, 2024
994de8d
[UPD] Update partner_disable_gravatar.pot
Dec 23, 2024
e2a8243
[BOT] post-merge updates
OCA-git-bot Dec 23, 2024
51b1c28
[IMP] partner_disable_gravatar: pre-commit auto fixes
alexis-via Feb 1, 2025
2c2c9dc
[MIG] partner_disable_gravatar to v18
alexis-via Feb 1, 2025
ac94c8d
Merge PR #1940 into 18.0
OCA-git-bot Feb 17, 2025
db717fd
[UPD] Update partner_disable_gravatar.pot
Feb 17, 2025
06f4f69
[BOT] post-merge updates
OCA-git-bot Feb 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ addon | version | maintainers | summary
[partner_contact_access_link](partner_contact_access_link/) | 18.0.1.0.0 | [![Yajo](https://github.com/Yajo.png?size=30px)](https://github.com/Yajo) | Allow to visit the full contact form from a company
[partner_contact_birthdate](partner_contact_birthdate/) | 18.0.1.0.0 | [![Daemo00](https://github.com/Daemo00.png?size=30px)](https://github.com/Daemo00) | Contact's birthdate
[partner_contact_personal_information_page](partner_contact_personal_information_page/) | 18.0.1.0.0 | [![Daemo00](https://github.com/Daemo00.png?size=30px)](https://github.com/Daemo00) | Add a page to contacts form to put personal information
[partner_disable_gravatar](partner_disable_gravatar/) | 18.0.1.0.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) | Disable automatic connection to gravatar.com
[partner_fax](partner_fax/) | 18.0.1.0.0 | | Add fax number on partner
[partner_firstname](partner_firstname/) | 18.0.1.1.0 | | Split first name and last name for non company partners
[partner_identification](partner_identification/) | 18.0.1.0.0 | | Partner Identification Numbers
Expand Down
115 changes: 115 additions & 0 deletions partner_disable_gravatar/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
========================
Partner Disable Gravatar
========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c7df667e1ad865a31e8f1055e6cdf995dae81a03ce92aa24df9a140beb66112f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github
:target: https://github.com/OCA/partner-contact/tree/18.0/partner_disable_gravatar
:alt: OCA/partner-contact
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/partner-contact-18-0/partner-contact-18-0-partner_disable_gravatar
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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 <https://www.gravatar.com/>`__ to get a picture
corresponding to the email address.

`Gravatar <//www.gravatar.com/>`__, 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 <http://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. <https://automattic.com/contact/>`__, 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**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_disable_gravatar%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Akretion

Contributors
------------

- Alexis de Lattre <[email protected]>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
:target: https://github.com/alexis-via
:alt: alexis-via

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-alexis-via|

This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/18.0/partner_disable_gravatar>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions partner_disable_gravatar/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions partner_disable_gravatar/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2018-2020 Akretion France (https://akretion.com/)
# @author: Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Partner Disable Gravatar",
"version": "18.0.1.0.0",
"category": "Tools",
"license": "AGPL-3",
"summary": "Disable automatic connection to gravatar.com",
"author": "Akretion, Odoo Community Association (OCA)",
"maintainers": ["alexis-via"],
"website": "https://github.com/OCA/partner-contact",
"depends": ["web"],
"installable": True,
}
22 changes: 22 additions & 0 deletions partner_disable_gravatar/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_disable_gravatar
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-11-04 14:44+0000\n"
"Last-Translator: Maria Sparenberg <[email protected]>\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.14.1\n"

#. module: partner_disable_gravatar
#: model:ir.model,name:partner_disable_gravatar.model_res_partner
msgid "Contact"
msgstr "Kontakt"
22 changes: 22 additions & 0 deletions partner_disable_gravatar/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_disable_gravatar
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-06 15:39+0000\n"
"Last-Translator: Rémi <[email protected]>\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: partner_disable_gravatar
#: model:ir.model,name:partner_disable_gravatar.model_res_partner
msgid "Contact"
msgstr "Contact"
31 changes: 31 additions & 0 deletions partner_disable_gravatar/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_disable_gravatar
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-12-13 00:44+0000\n"
"Last-Translator: Sergio Zanchetta <[email protected]>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: partner_disable_gravatar
#: model:ir.model,name:partner_disable_gravatar.model_res_partner
msgid "Contact"
msgstr "Contatto"

#~ msgid "Display Name"
#~ msgstr "Nome visualizzato"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Ultima modifica il"
19 changes: 19 additions & 0 deletions partner_disable_gravatar/i18n/partner_disable_gravatar.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_disable_gravatar
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: partner_disable_gravatar
#: model:ir.model,name:partner_disable_gravatar.model_res_partner
msgid "Contact"
msgstr ""
1 change: 1 addition & 0 deletions partner_disable_gravatar/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_partner
12 changes: 12 additions & 0 deletions partner_disable_gravatar/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2018-2020 Akretion France (https://akretion.com/)
# @author: Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models


class ResPartner(models.Model):
_inherit = "res.partner"

def _get_gravatar_image(self, email):
return False
3 changes: 3 additions & 0 deletions partner_disable_gravatar/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions partner_disable_gravatar/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Alexis de Lattre \<<[email protected]>\>
32 changes: 32 additions & 0 deletions partner_disable_gravatar/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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](https://www.gravatar.com/) to get a picture
corresponding to the email address.

[Gravatar](//www.gravatar.com/), 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](https://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.](https://automattic.com/contact/), 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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading