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_mobile_duplicate_warn: Migration to 18.0 #1961

Open
wants to merge 19 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
121 changes: 121 additions & 0 deletions partner_mobile_duplicate_warn/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
=============================
Partner Mobile Duplicate Warn
=============================

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

.. |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_mobile_duplicate_warn
: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_mobile_duplicate_warn
: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 adds a warning banner on the partner form view if another
partner has the same mobile phone number. It helps spot duplicate
partners. If the duplication is confirmed, the user can then use the
native partner merge wizard available from the partner tree view (menu
*Action > Merge*).

|image1|

This module depend on the module *phone_validation* from the official
addons which handle the automatic reformatting of phone numbers to the
E.164 format depending on the country of the partner. For exemple, for a
French partner, if you write **06.23.45.67.78** in the *Mobile* field,
it will be automatically reformatted to **+33 6 23 45 67 78** (via the
onchange). Thanks to this reformatting, this module can easily find
identical phone numbers on other partners.

It is similar to the native warning banner when another partner has the
same VAT number. This module has a twin brother named
**partner_email_duplicate_warn** which adds a warning banner when
another partner has the same email.

.. |image1| image:: https://raw.githubusercontent.com/OCA/partner-contact/18.0/partner_mobile_duplicate_warn/static/description/partner_warn_banner.png

**Table of contents**

.. contents::
:local:

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

No configuration required.

Usage
=====

The warning banner is displayed on the partner form view if another
partner: - has the same mobile phone number (the module
*phone_validation* ensure that phone numbers are automatically formatted
to the E.164 format), - if the partner is attached to a specific
company: is in the same company or is not attached to a specific
company, - if the partner is not attached to a specific company: is in
any company or not attached to a specific company.

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_mobile_duplicate_warn%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_mobile_duplicate_warn>`_ 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_mobile_duplicate_warn/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions partner_mobile_duplicate_warn/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2021-2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Partner Mobile Duplicate Warn",
"version": "18.0.1.0.0",
"category": "Partner Management",
"license": "AGPL-3",
"summary": "Warning banner on partner form if another partner has the same mobile",
"author": "Akretion,Odoo Community Association (OCA)",
"maintainers": ["alexis-via"],
"website": "https://github.com/OCA/partner-contact",
"depends": ["phone_validation"],
# I add phonenumbers in external_dependencies
# because the phone_validation module doesn't do it
# and it's needed for Travis
"external_dependencies": {"python": ["phonenumbers"]},
"data": [
"views/res_partner.xml",
],
"installable": True,
}
47 changes: 47 additions & 0 deletions partner_mobile_duplicate_warn/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_mobile_duplicate_warn
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-02-27 13:34+0000\n"
"Last-Translator: Alexis de Lattre <[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_mobile_duplicate_warn
#: model:ir.model,name:partner_mobile_duplicate_warn.model_res_partner
msgid "Contact"
msgstr "Contact"

#. module: partner_mobile_duplicate_warn
#: model_terms:ir.ui.view,arch_db:partner_mobile_duplicate_warn.view_partner_form
msgid "Duplicate warning: partner"
msgstr "Alerte doublon : le partenaire"

#. module: partner_mobile_duplicate_warn
#: model:ir.model.fields,field_description:partner_mobile_duplicate_warn.field_res_partner__same_mobile_partner_id
#: model:ir.model.fields,field_description:partner_mobile_duplicate_warn.field_res_users__same_mobile_partner_id
msgid "Partner with same mobile"
msgstr "Partenaire avec le même téléphone portable"

#. module: partner_mobile_duplicate_warn
#: model_terms:ir.ui.view,arch_db:partner_mobile_duplicate_warn.view_partner_form
msgid "has the same <b>Mobile</b>."
msgstr "a le même numéro de <b>téléphone portable</b>."

#~ msgid "Display Name"
#~ msgstr "Nom affiché"

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

#~ msgid "Last Modified on"
#~ msgstr "Dernière modification le"
47 changes: 47 additions & 0 deletions partner_mobile_duplicate_warn/i18n/fr_BE.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_mobile_duplicate_warn
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-09-28 10:07+0000\n"
"Last-Translator: Claude R Perrin <[email protected]>\n"
"Language-Team: none\n"
"Language: fr_BE\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_mobile_duplicate_warn
#: model:ir.model,name:partner_mobile_duplicate_warn.model_res_partner
msgid "Contact"
msgstr "Contact"

#. module: partner_mobile_duplicate_warn
#: model_terms:ir.ui.view,arch_db:partner_mobile_duplicate_warn.view_partner_form
msgid "Duplicate warning: partner"
msgstr "Alerte doublon : contact"

#. module: partner_mobile_duplicate_warn
#: model:ir.model.fields,field_description:partner_mobile_duplicate_warn.field_res_partner__same_mobile_partner_id
#: model:ir.model.fields,field_description:partner_mobile_duplicate_warn.field_res_users__same_mobile_partner_id
msgid "Partner with same mobile"
msgstr "Contact avec le même GSM"

#. module: partner_mobile_duplicate_warn
#: model_terms:ir.ui.view,arch_db:partner_mobile_duplicate_warn.view_partner_form
msgid "has the same <b>Mobile</b>."
msgstr "a le même <b>GSM</b>."

#~ msgid "Display Name"
#~ msgstr "Nom affiché"

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

#~ msgid "Last Modified on"
#~ msgstr "Dernière modification le"
47 changes: 47 additions & 0 deletions partner_mobile_duplicate_warn/i18n/fr_CH.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_mobile_duplicate_warn
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-09-28 10:07+0000\n"
"Last-Translator: Claude R Perrin <[email protected]>\n"
"Language-Team: none\n"
"Language: fr_CH\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_mobile_duplicate_warn
#: model:ir.model,name:partner_mobile_duplicate_warn.model_res_partner
msgid "Contact"
msgstr "Contact"

#. module: partner_mobile_duplicate_warn
#: model_terms:ir.ui.view,arch_db:partner_mobile_duplicate_warn.view_partner_form
msgid "Duplicate warning: partner"
msgstr "Alerte doublon : contact"

#. module: partner_mobile_duplicate_warn
#: model:ir.model.fields,field_description:partner_mobile_duplicate_warn.field_res_partner__same_mobile_partner_id
#: model:ir.model.fields,field_description:partner_mobile_duplicate_warn.field_res_users__same_mobile_partner_id
msgid "Partner with same mobile"
msgstr "Contact avec le même natel"

#. module: partner_mobile_duplicate_warn
#: model_terms:ir.ui.view,arch_db:partner_mobile_duplicate_warn.view_partner_form
msgid "has the same <b>Mobile</b>."
msgstr "a le même <b>natel</b>."

#~ msgid "Display Name"
#~ msgstr "Nom affiché"

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

#~ msgid "Last Modified on"
#~ msgstr "Dernière modification le"
38 changes: 38 additions & 0 deletions partner_mobile_duplicate_warn/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_mobile_duplicate_warn
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-27 09:37+0000\n"
"Last-Translator: mymage <[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.17\n"

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

#. module: partner_mobile_duplicate_warn
#: model_terms:ir.ui.view,arch_db:partner_mobile_duplicate_warn.view_partner_form
msgid "Duplicate warning: partner"
msgstr "Avviso duplicato: partner"

#. module: partner_mobile_duplicate_warn
#: model:ir.model.fields,field_description:partner_mobile_duplicate_warn.field_res_partner__same_mobile_partner_id
#: model:ir.model.fields,field_description:partner_mobile_duplicate_warn.field_res_users__same_mobile_partner_id
msgid "Partner with same mobile"
msgstr "Fornitori con lo stesso cellulare"

#. module: partner_mobile_duplicate_warn
#: model_terms:ir.ui.view,arch_db:partner_mobile_duplicate_warn.view_partner_form
msgid "has the same <b>Mobile</b>."
msgstr "ha lo stesso <b>cellulare</b>."
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_mobile_duplicate_warn
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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_mobile_duplicate_warn
#: model:ir.model,name:partner_mobile_duplicate_warn.model_res_partner
msgid "Contact"
msgstr ""

#. module: partner_mobile_duplicate_warn
#: model_terms:ir.ui.view,arch_db:partner_mobile_duplicate_warn.view_partner_form
msgid "Duplicate warning: partner"
msgstr ""

#. module: partner_mobile_duplicate_warn
#: model:ir.model.fields,field_description:partner_mobile_duplicate_warn.field_res_partner__same_mobile_partner_id
#: model:ir.model.fields,field_description:partner_mobile_duplicate_warn.field_res_users__same_mobile_partner_id
msgid "Partner with same mobile"
msgstr ""

#. module: partner_mobile_duplicate_warn
#: model_terms:ir.ui.view,arch_db:partner_mobile_duplicate_warn.view_partner_form
msgid "has the same <b>Mobile</b>."
msgstr ""
1 change: 1 addition & 0 deletions partner_mobile_duplicate_warn/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_partner
Loading
Loading