Using phonenumbers library this module adds tools methods as well as a small mixin for models that want to activate phone number validation and formatting. Formatting can be done always using an international format or having both national and international format. This is configured on the company. Note that phonenumbers library is optional. Installing this module without having the lib installed just skip its use but should not crash.
22 lines
590 B
Python
22 lines
590 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
{
|
|
'name': 'Phone Numbers Validation',
|
|
'summary': 'Validate and format phone numbers',
|
|
'sequence': '9999',
|
|
'category': 'Hidden',
|
|
'description': """
|
|
Phone Numbers Validation
|
|
========================
|
|
|
|
This module adds the feature of validation and formatting phone numbers
|
|
according to a destination country. It also handles national and international
|
|
formatting.
|
|
|
|
This module applies this feature to Leads and Contacts.""",
|
|
'data': [
|
|
],
|
|
'depends': ['base'],
|
|
}
|