Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2029 Visualizzazioni

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
Abbandona
Risposta migliore

Hi,

You can try as follows:

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


Thanks

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
ott 24
1373
0
set 23
1998
7
mag 18
4233
3
apr 16
6648
1
lug 25
1149