Subject: changeset in modules/party:4.6 Test valid property of VIES response to 
determine if it's valid or not
From: Sergi Almacellas Abellana <[email protected]>

changeset b2eca9483755 in modules/party:4.6
details: https://hg.tryton.org/modules/party?cmd=changeset;node=b2eca9483755
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 84ca380df9b1 -r b2eca9483755 party.py
--- a/party.py  Mon Oct 30 14:59:23 2017 +0100
+++ b/party.py  Wed Jan 30 11:49:57 2019 +0100
@@ -414,7 +414,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)

Reply via email to