Odoo Development
Duplicate Email Validation
Enforce global email uniqueness and automatic email normalization across Users, Contacts, and Employees in Odoo. This module standardizes all email inputs to lowercase and prevents duplicate data entries instantly.
Features
1) Install the Module
Go to the Odoo Apps menu,
search for Duplicate Email Validation
and click Activate.
2) Go to Settings → Users & Companies → Users → New
3) Create a new user (or contact/employee) and enter their email address in uppercase (e.g., DILNAVAZ@GMAIL.COM).
4) Save the record. The module will automatically trim whitespace and normalize the email address to lowercase (e.g., dilnavaz@gmail.com).
5) If you try to create a duplicate record with the same email (case-insensitive, e.g., DilNavaz@Gmail.Com), the system will raise a validation error and block the save operation.
6) Similarly, cross-model uniqueness validation checks across Users, Contacts, and Employees. Trying to create a Contact or Employee with an email address already registered under a User will display a warning and block saving.
It normalizes all email addresses to lowercase and enforces global uniqueness across Users, Contacts, and Employees to prevent duplicate records.
The module automatically trims leading/trailing spaces and converts all email addresses to lowercase before saving them, ensuring data consistency.
Yes. The constraint allows self-editing. If you edit other fields on a record without changing the email, the system will save successfully.
Yes. For Users, both the login field (if formatted as an email address) and the email field are checked for duplicate values.
No. The validation check is case-insensitive. Because all emails are normalized to lowercase on save, duplicate values with different capitalization will still be detected and blocked.
The system displays a user-friendly error message indicating which model (User, Contact, or Employee) is already using that email address and prevents the duplicate record from being saved.
Our Services
Odoo Customization
Odoo Consultancy
Odoo Implementation
Odoo Migration
Odoo Training
Odoo Integration
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Employees (hr) • Discuss (mail) |
| Lines of code | 169 |
| Technical Name |
wb_duplicate_email_validation |
| License | OPL-1 |
| Website | https://wanbuffer.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module