TIP: You can type at any time to perform a new search.
Phone Numbers Validation
phone_validation · odoo/odoo
- Repository
- odoo/odoo · module folder
- Module version
- 2.1
- Category
- Hidden
- Folder size
- 1.09 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- Yes
- Website
- None
- Last tracking update
- 2026-08-15 22:44:15
- Authors
- Odoo S.A.
- Maintainers
- Odoo S.A.
- Committers
- Xavier Morel, Raphael Collet, Thibault Delavallée, Odoo Translation Bot, Jeremy Kersten, qsm-odoo, Julien Castiaux, Prakash Prajapati, Tiffany Chang (tic), Gorash, Renaud Thiry, Dylan Kiss (dyki), Antoine (ande), Xavier Bol (xbo), yagp-odoo, Krzysztof Magusiak (krma), Basioni (basm)
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- crm, event, hr, partner_mobile_validation, point_of_sale, sms, test_mail_full
- Description
Phone Numbers Validation ======================== This module adds the feature of validation and formatting phone numbers according to a destination country. It also adds phone blacklist management through a specific model storing blacklisted phone numbers. It adds mail.thread.phone mixin that handles sanitation and blacklist of records numbers.
Code Analysis ⓘ
Views touched (5)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
phone_blacklist_remove_view_form |
phone.blacklist.remove.form | phone.blacklist.remove | form | New |
phone_blacklist_view_form |
phone.blacklist.view.form | phone.blacklist | form | New |
phone_blacklist_view_search |
phone.blacklist.view.search | phone.blacklist | search | New |
phone_blacklist_view_tree |
phone.blacklist.view.list | phone.blacklist | list | New |
res_partner_view_search |
res.partner.view.search.inherit.phone.validation | res.partner | search | Inherits base.view_res_partner_filter |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (6)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (4)
-
phone_blacklistedBooleancompute='_compute_blacklisted'compute_sudo=Truegroups='base.group_user'help='Indicates if a blacklisted sanitized phone number is a phone number. Helps distinguish which number is blacklisted when there is both a mobile and phone field in a model.'store=Falsestring='Blacklisted Phone is Phone' -
phone_mobile_searchCharsearch='_search_phone_mobile_search'store=False args: 'Phone Number' -
phone_sanitizedCharcompute='_compute_phone_sanitized'compute_sudo=Truehelp='Field used to store sanitized phone number. Helps speeding up searches and comparisons.'store=Truestring='Sanitized Number' -
phone_sanitized_blacklistedBooleancompute='_compute_blacklisted'compute_sudo=Truegroups='base.group_user'help="If the sanitized phone number is on the blacklist, the contact won't receive mass mailing sms anymore, from any list"search='_search_phone_sanitized_blacklisted'store=Falsestring='Phone Blacklisted'
-
init(self) -
phone_action_blacklist_remove(self)
New fields (2)
-
activeBooleandefault=Truetracking=True -
numberCharhelp='Number should be E164 formatted'required=Truesearch='_search_number'string='Phone Number'tracking=True
-
action_add(self) -
add(self, number, message=None) -
create(self, vals_list)@api.model_create_multiCreate new (or activate existing) blacklisted numbers. A. Note: Attempt to create a number that already exists, but is non-active, will result in its activation. B. Note: If the number already exists and it's active, it will be added to returned set, (it won't be re-created) Returns Recordset union of created and existing phonenumbers from the requested list of numbers to create -
phone_action_blacklist_remove(self) -
remove(self, number, message=None) -
write(self, vals)
New fields (2)
-
phoneCharreadonly=Truerequired=Truestring='Phone Number' -
reasonCharname='Reason'
-
action_unblacklist_apply(self)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…