mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 11:22:01 +02:00
19.0 vanilla
This commit is contained in:
parent
ff721d030e
commit
7721452493
1826 changed files with 124775 additions and 274114 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue