Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
1824 Prikazi

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

Hi,

You can try as follows:

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


Thanks

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
okt. 24
1094
0
sep. 23
1783
7
maj 18
4073
3
apr. 16
6434
1
apr. 24
2173