Files
odoo_source/addons/phone_validation/__manifest__.py
T
Thibault Delavallée 75f23a6a89 [REF] phone_validation, various: remove phone.validation.mixin and inline it
PURPOSE

Remove complex or technical code adding few value.

RATIONALE

phone.validation.mixin is used in two models: crm.lead and res.partner. It only
add a phone_format method used in onchange. We can inline this code in those
two models and remove the whole mixin itself. It lessens inherit and class
complexity.

SPECIFICATIONS

Remove phone.validation.mixin. Inline code in crm.lead (CRM application)
and res.partner (phone validation module). Make phone_format private as
it is now some internal tool method on those two models.

Everything should behave as before this commit. No functional change is
intended.

LINKS

Task ID-2416789
COM PR odoo/odoo#63333
ENT PR odoo/enterprise#15296
UPG PR odoo/upgrade#2025

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-01-15 08:14:01 +00:00

33 lines
883 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Phone Numbers Validation',
'version': '2.1',
'summary': 'Validate and format phone numbers',
'sequence': '9999',
'category': 'Hidden',
'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. """,
'data': [
'security/ir.model.access.csv',
'views/phone_blacklist_views.xml',
'wizard/phone_blacklist_remove_view.xml',
],
'depends': [
'base',
'mail',
],
'auto_install': True,
}