Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2024 Vistas

I would like to link to the contact record in my validation error. The message is 

f"Partners: {names} are not configured properly. (etc.)"

Where names is a list of contacts. I would like these names to link to their corresponding contact record. How can I make them links instead of strings?  


Avatar
Descartar
Mejor respuesta

Hi,

You can try as follows:

raise ValidationError(_("Invalid field %s.%s") % (model_name, field_name))


Thanks

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
oct 24
1370
0
sept 23
1997
7
may 18
4216
3
abr 16
6642
1
jul 25
1145