Add valid_vies.diff
This commit is contained in:
parent
873920d94d
commit
3c95a4efab
2
series
2
series
|
@ -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
|
|
@ -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)
|
||||
|
Loading…
Reference in New Issue