[IMP] base_vat,l10n_br: depend on l10n_latam_base to categorize id types

This adds the two main identification types we use in Brazil. CNPJ is
used the standard VAT type. The custom check_vat logic was removed
because stdnum supports this out of the box.

Another non-VAT CPF type was added that is checked for validity using
stdnum as well.

task-3475609

closes odoo/odoo#132773

Related: odoo/enterprise#46127
Related: odoo/upgrade#5062
Signed-off-by: Josse Colpaert <jco@odoo.com>
This commit is contained in:
Joren Van Onder
2023-09-05 19:58:04 +00:00
parent aa8b60a0c8
commit d4e8c88da6
7 changed files with 15 additions and 49 deletions
+1
View File
@@ -32,6 +32,7 @@ _ref_vat = {
'au': '83 914 571 673',
'be': 'BE0477472701',
'bg': 'BG1234567892',
'br': '48.906.308/0001-27',
'ch': 'CHE-123.456.788 TVA or CHE-123.456.788 MWST or CHE-123.456.788 IVA', # Swiss by Yannick Vaucher @ Camptocamp
'cl': 'CL76086428-5',
'co': 'CO213123432-1 or CO213.123.432-1',