Use relation name to retrieve the invalid domain of Reference field

Closes #14603
This commit is contained in:
Cédric Krier
2026-02-12 12:58:09 +01:00
parent aa8e767245
commit e37a2be600
+1 -1
View File
@@ -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))