Skip to Content
Menu
This question has been flagged
1 Reply
1059 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
169
0
Sep 23
877
7
May 18
3606
3
Apr 16
5759
1
Apr 24
997