Fix taxes.

#035013
This commit is contained in:
Carlos G?lvez 2018-09-13 16:31:34 +02:00
parent 7a8b8c8b0b
commit eae059a923
1 changed files with 3 additions and 3 deletions

View File

@ -322,9 +322,9 @@ class Invoice:
'invoice': self.rec_name,
'field': field,
})
if (not self.company.party.vat_code
or len(self.company.party.vat_code) < 3
or len(self.company.party.vat_code) > 30):
if (not self.company.party.tax_identifier.code
or len(self.company.party.tax_identifier.code) < 3
or len(self.company.party.tax_identifier.code) > 30):
self.raise_user_error('company_vat_identifier',
(self.company.party.rec_name,))