Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
2160 Vues

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
Ignorer
Meilleure réponse

Hi,

You can try as follows:

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


Thanks

Avatar
Ignorer
Publications associées Réponses Vues Activité
0
oct. 24
1522
0
sept. 23
2106
7
mai 18
4335
3
avr. 16
6757
1
juil. 25
1303