Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5802 Lượt xem

Hi folk,

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

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 15
5177
0
thg 3 25
1367
4
thg 4 24
174256
0
thg 12 23
2161
5
thg 7 25
228012