Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
2050 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
1388
0
sept. 23
2005
7
mai 18
4267
3
avr. 16
6665
1
juil. 25
1172