Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
6087 Visualizzazioni

Hi folk,

How do we translate the python constraint message when the user is using some other language and not English?

Avatar
Abbandona

You çan use _ function from openerp tool! _('str translatable')

Risposta migliore

Hi Vivek,


You can differentiate current language based on context dictionary & by that way you can display your custom language constraint message.


Hope that helps! Please let me know if it still doesn't work.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
lug 15
5405
0
mar 25
1771
4
apr 24
174778
0
dic 23
2488
5
lug 25
229914