Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
6047 Widoki

Hi folk,

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

Awatar
Odrzuć

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

Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lip 15
5356
0
mar 25
1741
4
kwi 24
174741
0
gru 23
2452
5
lip 25
229718