Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
6056 Visualizações

Hi folk,

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

Avatar
Cancelar

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

Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
jul. 15
5367
0
mar. 25
1746
4
abr. 24
174743
0
dez. 23
2479
5
jul. 25
229756