Skip to Content
मेन्यू
This question has been flagged
1 Reply
2161 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
अक्तू॰ 24
1523
0
सित॰ 23
2106
7
मई 18
4335
3
अप्रैल 16
6758
1
जुल॰ 25
1303