Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

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

by
Ecosoft Co. Ltd., Kitti Upariphutthiphong
- 18/02/2021 16:06:41
Thank you Alexis de Lattre, this is great!

On Thu, Feb 18, 2021 at 7:36 PM Alexis de Lattre <alexis.delattre@akretion.com> wrote:
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

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference