Skip to Content
Menu
This question has been flagged
1 Reply
2040 Views

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

Hi,

You can try as follows:

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


Thanks

Avatar
Discard
Related Posts Replies Views Activity
0
Oct 24
1380
0
Sep 23
2002
7
May 18
4259
3
Apr 16
6656
1
Jul 25
1154