Subject: changeset in modules/party:5.0 Test valid property of VIES response to determine if it's valid or not From: Sergi Almacellas Abellana <[email protected]>
changeset 2dcc618130ee in modules/party:5.0 details: https://hg.tryton.org/modules/party?cmd=changeset;node=2dcc618130ee 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 ab77e16ce539 -r 2dcc618130ee party.py --- a/party.py Sat Jan 26 01:12:03 2019 +0100 +++ b/party.py Wed Jan 30 11:49:57 2019 +0100 @@ -425,7 +425,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)
