Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
2359 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
1780
0
sept. 23
2349
7
mai 18
4537
3
avr. 16
6995
1
juil. 25
1554