Thibault Delavallée 065659ba90 [IMP] phone_validation: add a tool to extract region information from number
In this commit we add a new tool function in 'phone_validation' tooling
module. This tool 'phone_get_region_data_for_number' returns

  * 'code': the region code from phonenumbers library, which is like 'BE' or
    'GB' and (should) be the uppercase version of odoo country code;
  * 'phone_code': the 'country_code' from phonenumbers library parsed object
    which is actually the phone code of the country (might not be unique
    e.g. 1 for US and CA);
  * 'national_number': the 'national_number' from phonenumbers library parsed
    object which is the number without the 'phone_code' prefix (e.g. for a
    belgian number +32485001122 it is 485001122).

This will be used in whatsapp (enterprise) to ease finding country (and
partners) based on an input number.

Task-3608129 (Whatsapp: Moultifix !)

X-original-commit: odoo/odoo@646aa8f369
Part-of: odoo/odoo#146398
2023-12-15 17:13:25 +00:00
2023-11-02 21:02:44 +00:00
2023-12-11 05:29:19 +00:00
…
…
…

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%