Validate phone numbers
Project description
This module validate phone numbers using the phonenumbers Python library, which is a port of the library used in Android smartphones. For example, if your user is linked to a French company and you update the form view of a partner with a badly written French phone number such as ‘01-55-42-12-42’, Odoo will automatically update the phone number to E.164 format ‘+33155421242’ and display in the form and tree view of the partner the readable equivalent ‘+33 1 55 42 12 42’.
This module also adds tel: links on phone numbers and fax: links on fax numbers. If you have a softphone or a client software on your PC that is associated with tel: links, the softphone should propose you to dial the phone number when you click on such a link.
This module also updates the format() function for reports and adds 2 arguments :
phone : should be True for a phone number, False (default) otherwize.
- phone_formatit can have 3 possible values :
international (default) : the report will display ‘+33 1 55 42 12 42’
national : the report will display ‘01 55 42 12 42’
e164 : the report will display ‘+33155421242’
For example, in the Sale Order report, to display the phone number of the Salesman, you can write : o.user_id and o.user_id.phone and format(o.user_id.phone, phone=True, phone_format=’national’) or ‘’
This module is independant from the Asterisk connector.
Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for any help or question about this module.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file odoo8_addon_base_phone-8.0.0.1.0.99.dev56-py2-none-any.whl
.
File metadata
- Download URL: odoo8_addon_base_phone-8.0.0.1.0.99.dev56-py2-none-any.whl
- Upload date:
- Size: 286.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a44c87c3a1546a4687c47f1f86ca9877a981d8c62266231b326022b7f4b3bf58 |
|
MD5 | b1b7f00378f68d9038ec5b8b3d69d12d |
|
BLAKE2b-256 | 9cdb559f5c0bb925298412c7614d74ee01f6faf04d7d190a533f87788fb94467 |