details:   https://code.tryton.org/tryton/commit/b461790f9344
branch:    8.2
user:      Cédric Krier <[email protected]>
date:      Fri Nov 06 10:16:53 2026 +0100
description:
        Limit check VIES per cron to 20 identifiers

        The VIES service has strict limitation against abuse so we must check a 
small
        number of number during one transaction to be able to complete the 
check.

        Closes #15188
        (grafted from c0545c4987cc0a990bbbfcac9df896ae33ba640c)
diffstat:

 modules/party/party.py |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r 040301e5091c -r b461790f9344 modules/party/party.py
--- a/modules/party/party.py    Wed Nov 04 18:21:06 2026 +0100
+++ b/modules/party/party.py    Fri Nov 06 10:16:53 2026 +0100
@@ -1117,7 +1117,10 @@
                             now - config.identifier_eu_vat_validation_period),
                         ],
                     ],
-                order=[])
+                limit=20,
+                order=[
+                    ('eu_vat_validated_at', 'ASC NULLS FIRST'),
+                    ])
         if not identifiers:
             return
         failed, succeeded = [], []

Reply via email to