details: https://code.tryton.org/tryton/commit/c0545c4987cc
branch: default
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
diffstat:
modules/party/party.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r d153f4a7a864 -r c0545c4987cc modules/party/party.py
--- a/modules/party/party.py Fri Nov 06 09:59:36 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 = [], []