跳至内容
菜单
此问题已终结
4515 查看

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.

形象
丢弃
相关帖文 回复 查看 活动
3
6月 25
2505
0
12月 24
1383
0
5月 24
1659
1
3月 24
1586
2
2月 24
2931