TIP: You can type at any time to perform a new search.
Phone Numbers Validation
phone_validation · odoo/odoo
Security findings
- Repository
- odoo/odoo · module folder
- Module version
- 2.1
- Category
- Hidden
- Folder size
- 1.13 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- Yes
- Website
- None
- Last tracking update
- 2026-09-28 18:31:13
- Authors
- Odoo S.A.
- Maintainers
- Odoo S.A.
- Committers
- Raphael Collet, Odoo Translation Bot, qsm-odoo, Xavier-Do, Victor Feyens, Tiffany Chang (tic), yhu-odoo, amdi-odoo, Dylan Kiss (dyki), aktr-odoo, Mohammed Basioni, Krzysztof Magusiak (krma)
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- crm, event, hr, im_livechat, point_of_sale, sms, test_mail, 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 (10)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
mail_activity_schedule_view_form |
mail.activity.schedule.view.form.inherit.phone.validation | mail.activity.schedule | form | Inherits mail.mail_activity_schedule_view_form |
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_form |
res.partner.view.form.inherit.phone.validation | res.partner | form | Inherits base.view_partner_form |
res_partner_view_kanban |
res.partner.view.kanban.inherit.phone.validation | res.partner | kanban | Inherits base.res_partner_kanban_view |
res_partner_view_list |
res.partner.view.list.inherit.phone.validation | res.partner | list | Inherits base.view_partner_tree |
res_partner_view_search |
res.partner.view.search.inherit.phone.validation | res.partner | search | Inherits base.view_res_partner_filter |
res_partner_view_simple_form |
res.partner.view.simple.form.inherit.phone.validation | res.partner | form | Inherits base.view_partner_simple_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (9)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
phone_formattedCharcompute='_compute_phone_formatted'
No public methods.
New fields (5)
-
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_formattedCharcompute='_compute_phone_formatted'export_string_translation=Falsestring='Formatted Number' -
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…
Loading…