Skip to Content
Menú
This question has been flagged
1 Respondre
2052 Vistes

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
Best Answer

Hi,

You can try as follows:

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


Thanks

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
d’oct. 24
1393
0
de set. 23
2007
7
de maig 18
4269
3
d’abr. 16
6671
1
de jul. 25
1176