19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:28 +01:00
parent ff721d030e
commit 7721452493
1826 changed files with 124775 additions and 274114 deletions

View file

@ -26,8 +26,5 @@ class ResPartner(models.Model):
super()._compute_company_registry()
for partner in self.filtered(lambda p: p.country_id.code == 'RO' and p.vat):
vat_country, vat_number = self._split_vat(partner.vat)
if vat_country.isnumeric():
vat_country = 'ro'
vat_number = partner.vat
if vat_country == 'ro' and self.simple_vat_check(vat_country, vat_number):
if vat_country in ('RO', '') and self._check_vat_number('RO', vat_number):
partner.company_registry = vat_number