Phone Numbers Validation
phone_validation · odoo/odoo
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by25/258 modules depend on it
-
Maturity25/25In 10 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
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.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- crm, event, hr, im_livechat, point_of_sale, sms, test_mail, test_mail_full
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
-
phone_formattedCharcompute='_compute_phone_formatted'
No public methods.
-
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)
-
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)
-
phoneCharreadonly=Truerequired=Truestring='Phone Number' -
reasonCharname='Reason'
-
action_unblacklist_apply(self)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…