Files
odoo_source/addons/base_vat/models
Nshimiyimana Séna e53081fadb [FIX] l10n_br, base_vat: move Brazilian vat check to base_vat
Summary
-------
Currently, adding a CPF tax ID on a Brazilian contact always fails.

Steps to reproduce
------------------
* install `contacts` and `base_vat`
* create a new contact with country Brazil
* enter a valid CPF (ex: 11144477735)

You should be met with an error

Cause
-----
The CPF check is only implemented in `l10n_br`. Without this module, the
default vat check is applied, but it fails for CPF numbers.

Fix
---
Move the CPF/CNPJ check from `l10n_br` to `base_vat`

opw-3421476

closes odoo/odoo#139222

X-original-commit: 5dc5832f438006a9a4b9abeb1f093d7ed520c771
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: Séna Serge Nshimiyimana (sesn) <sesn@odoo.com>
2023-10-26 13:41:12 +00:00
..