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

[18.0][MIG] partner_email_check: Migration to 18.0 #6

Open
wants to merge 51 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
2962fbc
Add new module partner-email-check (#496)
denislour Dec 18, 2017
8f8cf45
OCA Transbot updated translations from Transifex
oca-transbot Dec 30, 2017
711c217
Migrate module partner_email_check to version 11.0
Jan 4, 2018
b11622e
Remove copyright in init + ref code.
Apr 23, 2019
bd79083
icon.png
OCA-git-bot Apr 23, 2019
ead3f32
Update partner_email_check.pot
oca-travis Apr 23, 2019
3e2957f
Make debugger record a debug message instead of error when importing …
ntsirintanis Aug 29, 2019
6dbce8c
partner_email_check 11.0.1.0.1
OCA-git-bot Aug 29, 2019
b2d5ec5
Add normalization and optional uniqueness to partner_email_check
janverb Sep 10, 2019
6c1fbda
Fix partner_email_check conflict with portal, bump version
janverb Oct 25, 2019
b5d7f37
Update partner_email_check.pot
oca-travis Nov 28, 2019
a98cd07
partner_email_check 11.0.2.0.0
OCA-git-bot Nov 28, 2019
3767f96
partner_email_check: Migration to 12.0
Jun 9, 2020
6725116
partner_email_check: Migration to 13.0
qgroulard Oct 15, 2020
aa12cd1
Remove email from copy data if duplicates not allowed
qgroulard Jul 5, 2021
caf821f
Add partner email check syntax flag
qgroulard Jul 7, 2021
8e624b5
Update partner_email_check.pot
oca-travis Jul 8, 2021
ae537cd
README.rst
OCA-git-bot Jul 8, 2021
e13dd35
partner_email_check 13.0.1.1.0
OCA-git-bot Jul 8, 2021
643c701
partner_email_check: black, isort, prettier
Zar21 Aug 11, 2021
69fce03
partner_email_check: Migration to 14.0
Zar21 Aug 11, 2021
56f0548
Update partner_email_check.pot
oca-travis Sep 10, 2021
a3d46a3
README.rst
OCA-git-bot Sep 10, 2021
1874c9a
partner_email_check 14.0.1.1.1
OCA-git-bot Sep 10, 2021
c71c463
Added translation using Weblate (French)
remi-filament Oct 25, 2021
ee445dd
Translated using Weblate (French)
remi-filament Oct 25, 2021
6ba8f64
Added translation using Weblate (Italian)
primes2h Dec 12, 2021
4397837
Translated using Weblate (Italian)
primes2h Dec 12, 2021
edf636c
Translated using Weblate (Italian)
primes2h Dec 13, 2021
54d864e
Translated using Weblate (Italian)
primes2h Dec 18, 2021
289e6e0
update dotfiles [ci skip]
OCA-git-bot Mar 31, 2022
a17d52d
Translated using Weblate (Italian)
francesco-ooops Oct 20, 2022
baf00bc
[MIG] partner_email_check: migration to 15.0
Dec 11, 2022
e3eeff4
[UPD] Update partner_email_check.pot
Feb 15, 2023
0805de9
[UPD] README.rst
OCA-git-bot Feb 15, 2023
274c9d7
partner_email_check 15.0.1.0.1
OCA-git-bot Feb 15, 2023
34894ec
[MIG] partner_email_check: Migration to 16.0
diogocsc Apr 3, 2023
ff65599
[UPD] Update partner_email_check.pot
Nov 6, 2023
3630327
[BOT] post-merge updates
OCA-git-bot Nov 6, 2023
b65c500
Added translation using Weblate (Spanish)
Ivorra78 Nov 6, 2023
a6aac9f
Translated using Weblate (Spanish)
Ivorra78 Nov 6, 2023
ef63a0c
[IMP] partner_email_check: pre-commit auto fixes
youelEl Apr 1, 2024
9af0c0a
[MIG] partner_email_check: Migration to 17.0
youelEl Apr 1, 2024
7dc026b
[UPD] Update partner_email_check.pot
May 21, 2024
74c4709
[BOT] post-merge updates
OCA-git-bot May 21, 2024
15f0622
Update translation files
weblate May 21, 2024
456c53a
Translated using Weblate (Italian)
mymage May 22, 2024
e53106d
[IMP] partner_contact_role: pre-commit execution
jdidderen-nsi Aug 7, 2024
add5f1f
[IMP] partner_email_check: improve configuration view
chaule97 Oct 3, 2024
fa11c33
[IMP] partner_email_check: pre-commit auto fixes
Kimkhoi3010 Oct 15, 2024
008cf41
[MIG] partner_email_check: Migration to 18.0
Kimkhoi3010 Oct 15, 2024
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
115 changes: 115 additions & 0 deletions partner_email_check/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
====================
Email Format Checker
====================

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

.. |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_email_check
: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_email_check
: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|

This module validates and normalizes the field ``email`` in the model
``res.partner``.

As part of the normalization, email addresses are converted to
lowercase.

Optionally, multiple partners can not be allowed to have the same
address. This will not work with multiple comma-separated email
addresses in the field, although validation and normalization are still
supported in such cases.

**Table of contents**

.. contents::
:local:

Configuration
=============

Install python package email-validator:
``sudo pip install email-validator``.

To not allow multiple partners to have the same email address, use the
"Filter duplicate email
addresses"/``partner_email_check_filter_duplicates`` setting.

To validate that email addresses are deliverable (that the hostname
exists), use the "Check deliverability of email
addresses"/``partner_email_check_check_deliverability`` setting.

Usage
=====

This module integrate automatically in all of the view ``res.partner``

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_email_check%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
-------

* Komit

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

- Vo Hoang Dat <[email protected]>
- Jean-Charles Drubay <[email protected]>
- Diogo Cordeiro <[email protected]>
- Khoi (Kien Kim) <[email protected]>

Other credits
-------------

The migration of this module from 17.0 to 18.0 was financially supported
by:

- Camptocamp.

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.

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions partner_email_check/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
18 changes: 18 additions & 0 deletions partner_email_check/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2019 Komit <https://komit-consulting.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Email Format Checker",
"version": "18.0.1.0.0",
"summary": "Validate email address field",
"author": "Komit, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/partner-contact",
"category": "Tools",
"depends": ["base_setup"],
"installable": True,
"application": False,
"license": "AGPL-3",
"external_dependencies": {"python": ["email-validator"]},
"data": ["views/base_config_view.xml"],
"demo": ["demo/res_company_demo.xml"],
}
9 changes: 9 additions & 0 deletions partner_email_check/demo/res_company_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2021 ACSONE SA/NV
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<function model="res.company" name="write">
<value model="res.company" search="[]" />
<value eval="{'partner_email_check_syntax': False}" />
</function>
</odoo>
145 changes: 145 additions & 0 deletions partner_email_check/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_email_check
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-06 21:38+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: none\n"
"Language: es\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_email_check
#. odoo-python
#: code:addons/partner_email_check/models/res_partner.py:0
#, python-format
msgid "%s is an invalid email"
msgstr "%s es un email inválido"

#. module: partner_email_check
#: model_terms:ir.ui.view,arch_db:partner_email_check.view_general_configuration
msgid ""
"<span class=\"fa fa-lg fa-building-o\" title=\"Values set here are company-"
"specific.\" aria-label=\"Values set here are company-specific.\" groups="
"\"base.group_multi_company\" role=\"img\"/>"
msgstr ""
"<span class=\"fa fa-lg fa-building-o\" title=\"Values set here are company-"
"specific.\" aria-label=\"Values set here are company-specific.\" groups="
"\"base.group_multi_company\" role=\"img\"/>"

#. module: partner_email_check
#. odoo-python
#: code:addons/partner_email_check/models/res_partner.py:0
#, python-format
msgid "Cannot deliver to email address %s"
msgstr "No se puede entregar a la dirección de correo electrónico %s"

#. module: partner_email_check
#. odoo-python
#: code:addons/partner_email_check/models/res_partner.py:0
#, python-format
msgid "Cannot import 'email_validator'."
msgstr "No se puede importar 'email_validator'."

#. module: partner_email_check
#: model:ir.model.fields,field_description:partner_email_check.field_res_company__partner_email_check_check_deliverability
#: model:ir.model.fields,field_description:partner_email_check.field_res_config_settings__partner_email_check_check_deliverability
msgid "Check deliverability of email addresses"
msgstr "Comprobar la entregabilidad de las direcciones de correo electrónico"

#. module: partner_email_check
#: model:ir.model.fields,field_description:partner_email_check.field_res_company__partner_email_check_syntax
#: model:ir.model.fields,field_description:partner_email_check.field_res_config_settings__partner_email_check_syntax
msgid "Check syntax of email addresses"
msgstr "Comprobar la sintaxis de las direcciones de correo electrónico"

#. module: partner_email_check
#: model:ir.model,name:partner_email_check.model_res_company
msgid "Companies"
msgstr "Compañías"

#. module: partner_email_check
#: model:ir.model,name:partner_email_check.model_res_config_settings
msgid "Config Settings"
msgstr "Ajustes Configuración"

#. module: partner_email_check
#: model:ir.model,name:partner_email_check.model_res_partner
msgid "Contact"
msgstr "Contacto"

#. module: partner_email_check
#: model:ir.model.fields,help:partner_email_check.field_res_company__partner_email_check_check_deliverability
#: model:ir.model.fields,help:partner_email_check.field_res_config_settings__partner_email_check_check_deliverability
msgid "Don't allow email addresses with providers that don't exist"
msgstr ""
"No permitir direcciones de correo electrónico con proveedores que no existen"

#. module: partner_email_check
#: model:ir.model.fields,help:partner_email_check.field_res_company__partner_email_check_syntax
#: model:ir.model.fields,help:partner_email_check.field_res_config_settings__partner_email_check_syntax
msgid "Don't allow email addresses with wrong syntax"
msgstr "No permitir direcciones de correo electrónico con sintaxis incorrecta"

#. module: partner_email_check
#: model:ir.model.fields,help:partner_email_check.field_res_company__partner_email_check_filter_duplicates
#: model:ir.model.fields,help:partner_email_check.field_res_config_settings__partner_email_check_filter_duplicates
msgid "Don't allow multiple partners to have the same email address."
msgstr ""
"No permita que varios socios tengan la misma dirección de correo electrónico."

#. module: partner_email_check
#. odoo-python
#: code:addons/partner_email_check/models/res_partner.py:0
#, python-format
msgid "Email '%s' is already in use."
msgstr "El correo electrónico '%s' ya está en uso."

#. module: partner_email_check
#: model_terms:ir.ui.view,arch_db:partner_email_check.view_general_configuration
msgid "Email validation"
msgstr "Validación del correo electrónico"

#. module: partner_email_check
#: model_terms:ir.ui.view,arch_db:partner_email_check.view_general_configuration
msgid "Ensure that partner email addresses can be delivered to"
msgstr ""
"Garantizar que las direcciones de correo electrónico de los socios puedan "
"enviarse a"

#. module: partner_email_check
#. odoo-python
#: code:addons/partner_email_check/models/res_partner.py:0
#, python-format
msgid ""
"Field contains multiple email addresses. This is not supported when "
"duplicate email addresses are not allowed."
msgstr ""
"El campo contiene varias direcciones de correo electrónico. No se admite "
"cuando no se permiten direcciones de correo electrónico duplicadas."

#. module: partner_email_check
#: model:ir.model.fields,field_description:partner_email_check.field_res_company__partner_email_check_filter_duplicates
#: model:ir.model.fields,field_description:partner_email_check.field_res_config_settings__partner_email_check_filter_duplicates
msgid "Filter duplicate partner email addresses"
msgstr "Filtrar las direcciones de correo electrónico duplicadas de los socios"

#. module: partner_email_check
#: model_terms:ir.ui.view,arch_db:partner_email_check.view_general_configuration
msgid "Require partner email addresses to be unique"
msgstr ""
"Exigir que las direcciones de correo electrónico de los socios sean únicas"

#. module: partner_email_check
#: model_terms:ir.ui.view,arch_db:partner_email_check.view_general_configuration
msgid "Require partner email addresses to have valid syntax"
msgstr ""
"Exigir que las direcciones de correo electrónico de los socios tengan una "
"sintaxis válida"
Loading
Loading