TIP: You can type at any time to perform a new search.

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
odoo/odoo:
- web
- bus
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 info_outline

Views touched (10)
XML IDNameModelTypeStatus
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_formatted Char
    compute='_compute_phone_formatted'
Public methods (0)

No public methods.

New fields (5)
  • phone_blacklisted Boolean
    compute='_compute_blacklisted' compute_sudo=True groups='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=False string='Blacklisted Phone is Phone'
  • phone_formatted Char
    compute='_compute_phone_formatted' export_string_translation=False string='Formatted Number'
  • phone_mobile_search Char
    search='_search_phone_mobile_search' store=False args: 'Phone Number'
  • phone_sanitized Char
    compute='_compute_phone_sanitized' compute_sudo=True help='Field used to store sanitized phone number. Helps speeding up searches and comparisons.' store=True string='Sanitized Number'
  • phone_sanitized_blacklisted Boolean
    compute='_compute_blacklisted' compute_sudo=True groups='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=False string='Phone Blacklisted'
Public methods (2)
  • init(self)
  • phone_action_blacklist_remove(self)

New fields (2)
  • active Boolean
    default=True tracking=True
  • number Char
    help='Number should be E164 formatted' required=True search='_search_number' string='Phone Number' tracking=True
Public methods (6)
  • action_add(self)
  • add(self, number, message=None)
  • create(self, vals_list)
    @api.model_create_multi
    Create 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)
  • phone Char
    readonly=True required=True string='Phone Number'
  • reason Char
    name='Reason'
Public methods (1)
  • 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…