Add valid_vies.diff

This commit is contained in:
Jared Esparza 2021-02-10 10:53:36 +01:00
parent 873920d94d
commit 3c95a4efab
2 changed files with 14 additions and 0 deletions

2
series
View File

@ -88,3 +88,5 @@ issue5907.diff # [trytond] Remove unoconv and call soffice directly
issue9113.diff # [stock] ir.msg_read_error when read _history table when that not have history
lazy_loading.diff # [trytond] https://discuss.tryton.org/t/should-create-uid-write-uid-use-lazy-loading/2458/7
valid_vies.diff # [party] fix bug that not validate vies correctly

12
valid_vies.diff Normal file
View File

@ -0,0 +1,12 @@
--- a/trytond/trytond/modules/party/party.py
+++ b/trytond/trytond/modules/party/party.py
@@ -349,7 +349,7 @@ class CheckVIES(Wizard):
if identifier.type != 'eu_vat':
continue
try:
- if not vat.check_vies(identifier.code):
+ if not vat.check_vies(identifier.code)['valid']:
parties_failed.append(party.id)
else:
parties_succeed.append(party.id)