From 79a23ca262acc665ecf0a56f2271bb0e68f0680d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 7 Jan 2024 19:11:58 +0100 Subject: [PATCH] Display the actual wrong ids in domain rule error message Closes #12907 (grafted from 4ebe825f8202d35630c08b0fbd5d1c93bd9124c3) --HG-- branch : 6.0 --- trytond/trytond/model/modelsql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/trytond/model/modelsql.py b/trytond/trytond/model/modelsql.py index 6848e2ee83..ab17e97d82 100644 --- a/trytond/trytond/model/modelsql.py +++ b/trytond/trytond/model/modelsql.py @@ -1251,7 +1251,7 @@ class ModelSQL(ModelStorage): model = cls.__name__ if Model: model = Model.get_name(cls.__name__) - ids = ', '.join(map(str, ids[:5])) + ids = ', '.join(map(str, wrong_ids[:5])) if len(wrong_ids) > 5: ids += '...' if domain: