[FIX] phone_validation: Switch phonenumbers from logger.warning to logger.info
It was discussed previously from: - https://github.com/odoo/odoo/commit/b79d05fff0cacb4d99ebc1b60f44d8dab757b806 I quote Olivier Dony commit message: """ Having it in INFO should be sufficient for its purpose, and will avoid impacting all CI builds done on a system that does not have the lib installed. For the record, this is not a hard requirement because the lib was not available in Debian stable packages at the time of release. It is only enabled on demand for those who want the feature and can install it manually. Fixes #22426 Closes #22459 """ closes odoo/odoo#40788 X-original-commit: 0394f5e95702087b38357070aad43f2b477c374e Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
This commit is contained in:
@@ -68,7 +68,7 @@ except ImportError:
|
||||
def phone_format(number, country_code, country_phone_code, force_format='INTERNATIONAL', raise_exception=True):
|
||||
global _phonenumbers_lib_warning
|
||||
if not _phonenumbers_lib_warning:
|
||||
_logger.warning(
|
||||
_logger.info(
|
||||
"The `phonenumbers` Python module is not installed, contact numbers will not be "
|
||||
"verified. Please install the `phonenumbers` Python module."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user