Skip to Content
Menu
This question has been flagged
1 Reply
1867 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
1183
0
Sep 23
1810
7
May 18
4092
3
Apr 16
6494
1
Apr 24
2241