Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
5809 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
5181
0
mar 25
1375
4
abr 24
174280
0
dic 23
2172
5
jul 25
228052