Repository
OCA/partner-contact · module folder · Try on Runboat
Module version
1.0.0
Category
Partner Management
Folder size
0.12 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/partner-contact
Last tracking update
2026-08-07 08:42:56
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
Alexis de Lattre, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
phonenumbers
System dependencies
None
Required by
None
Description
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*).

![](static/description/partner_warn_banner.png)

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.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_partner_form res.partner form Inherits base.view_partner_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (1)
  • same_mobile_partner_ids Many2many → res.partner
    compute='_compute_same_mobile_partner_ids' compute_sudo=True string='Partners with same mobile' args: 'res.partner'
Public methods (1)
  • action_open_business_doc(self)
    Method called when you click on the link in the duplicate warning banner

Loading…

Loading…