mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] base_vat_optional_vies: Remove contraints on dotted names
This commit is contained in:
committed by
OCA-git-bot
parent
b6f38378c4
commit
dab8426549
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user