From e37a2be6005838f074ddebad3aacd3516a0a5d82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 12 Feb 2026 12:58:09 +0100 Subject: [PATCH] Use relation name to retrieve the invalid domain of Reference field Closes #14603 --- trytond/trytond/model/modelstorage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/trytond/model/modelstorage.py b/trytond/trytond/model/modelstorage.py index be3cc37bc7..b8069a6001 100644 --- a/trytond/trytond/model/modelstorage.py +++ b/trytond/trytond/model/modelstorage.py @@ -1549,7 +1549,7 @@ class ModelStorage(Model): if is_pyson(domain): domain = _record_eval_pyson(records[0], domain) if isinstance(domain, dict): - domain = domain.get(Relation.__class__, []) + domain = domain.get(Relation.__name__, []) msg = gettext( 'ir.msg_domain_validation_record', **cls.__names__(field.name, invalid_record))