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
odoo/odoo:
- web
- bus
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 IDNameModelTypeStatus
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_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_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…