Subject: changeset in modules/party:4.8 Test valid property of VIES response to determine if it's valid or not From: Sergi Almacellas Abellana <[email protected]>
changeset 12b5055f09f0 in modules/party:4.8 details: https://hg.tryton.org/modules/party?cmd=changeset;node=12b5055f09f0 description: Test valid property of VIES response to determine if it's valid or not The web service returns a response for all identifiers, which contains a valid flag to indicate if the identifier is valid or not issue8031 review70511002 (grafted from ead795e9deb097ce18086036fdf4f1f51509f00c) diffstat: party.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 0f4dbea1af2d -r 12b5055f09f0 party.py --- a/party.py Sat Jan 26 01:12:50 2019 +0100 +++ b/party.py Wed Jan 30 11:49:57 2019 +0100 @@ -427,7 +427,7 @@ 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)
