2
0

[FIX] base_vat_optional_vies: Remove contraints on dotted names

This commit is contained in:
Alexandre Díaz 2019-07-29 14:28:12 +02:00 committed by Rodrigo
parent 4c40f09663
commit 9450bbd1df

View File

@ -34,7 +34,7 @@ class ResPartner(models.Model):
return self.simple_vat_check(country_code, vat_number) return self.simple_vat_check(country_code, vat_number)
return res return res
@api.constrains('vat', 'commercial_partner.country_id') @api.constrains('vat')
def check_vat(self): def check_vat(self):
for partner in self: for partner in self:
partner = partner.with_context(vat_partner=partner) partner = partner.with_context(vat_partner=partner)