Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
6148 Vistas

Hi folk,

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

Avatar
Descartar

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

Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
jun 15
5464
0
mar 25
1849
4
abr 24
174905
0
dic 23
2550
5
jul 25
230149