Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Any module that verify numbers, i.e., employee's citizen ID

by
Alexinux, Alexis de Lattre
- 18/02/2021 13:36:10
Le jeu. 11 févr. 2021 à 12:46, Rubén Seijas <ruben@comunitea.com> a écrit :

I would also recommend to use python-stdnum. If the citizen ID validation for your country is not yet supported by python-stdnum, you can add it there ; the maintainer is very nice and reactive. I worked with him to add support for the new VAT numbers of Northern Ireland and it was added a few days later.
For example, python-stdnum supports validation of France's social security numbers. Then we have a small "glue" module l10n_fr_hr_check_ssnid that uses python-stdnum and adds a constraint to validate the number :



--
Alexis de Lattre
Akretion France - 27 rue Henri Rolland - 69100 Villeurbanne - France
Mail : alexis.delattre@akretion.com
Mobile : +33 6 99 08 92 45

Reference