Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
5698 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
5094
0
mar 25
1182
4
abr 24
173785
0
dic 23
1963
5
jul 25
226978