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

This code returns a string in english:

description = (pool.get('ir.model.data')
               .get_object(cr,
                           uid,
                           'crm_unassigned_leads_notify',
                           'mt_unassigned_lead')
               .description)

However, it's translated to spanish in the module, and it appears correctly translated in the UI.

How can I get that string translated?

Note that I cannot use from openerp.tools import _ because this code runs as an automated action, in a sandboxed environment. See the whole code if you need to.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 6 25
2492
0
thg 12 24
1365
0
thg 5 24
1655
1
thg 3 24
1579
2
thg 2 24
2900