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

changeset c5ff05f81735 in modules/party:4.2
details: https://hg.tryton.org/modules/party?cmd=changeset;node=c5ff05f81735
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 c5f122b21f3b -r c5ff05f81735 party.py
--- a/party.py  Sat Jul 01 23:55:27 2017 +0200
+++ b/party.py  Wed Jan 30 11:49:57 2019 +0100
@@ -370,7 +370,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