[FIX] base_vat_optional_vies: Remove contraints on dotted names
This commit is contained in:
parent
4c40f09663
commit
9450bbd1df
@ -34,7 +34,7 @@ class ResPartner(models.Model):
|
||||
return self.simple_vat_check(country_code, vat_number)
|
||||
return res
|
||||
|
||||
@api.constrains('vat', 'commercial_partner.country_id')
|
||||
@api.constrains('vat')
|
||||
def check_vat(self):
|
||||
for partner in self:
|
||||
partner = partner.with_context(vat_partner=partner)
|
||||
|
Loading…
Reference in New Issue
Block a user