details: https://code.tryton.org/tryton/commit/07ac2f3bba63
branch: default
user: Cédric Krier <[email protected]>
date: Thu Feb 12 12:58:09 2026 +0100
description:
Use relation name to retrieve the invalid domain of Reference field
Closes #14603
diffstat:
trytond/trytond/model/modelstorage.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 80fddd54da71 -r 07ac2f3bba63 trytond/trytond/model/modelstorage.py
--- a/trytond/trytond/model/modelstorage.py Thu Feb 05 16:12:46 2026 +0100
+++ b/trytond/trytond/model/modelstorage.py Thu Feb 12 12:58:09 2026 +0100
@@ -1549,7 +1549,7 @@
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))