From 3c95a4efab93a3e1ade8c418c1a925a05d79bd3c Mon Sep 17 00:00:00 2001 From: Jared Esparza Date: Wed, 10 Feb 2021 10:53:36 +0100 Subject: [PATCH] Add valid_vies.diff --- series | 2 ++ valid_vies.diff | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 valid_vies.diff diff --git a/series b/series index 3b6f8db..3d7ee07 100644 --- a/series +++ b/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 \ No newline at end of file diff --git a/valid_vies.diff b/valid_vies.diff new file mode 100644 index 0000000..3fde79c --- /dev/null +++ b/valid_vies.diff @@ -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) +