Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4530 Zobrazení

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.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
čvn 25
2512
0
pro 24
1412
0
kvě 24
1664
1
bře 24
1591
2
úno 24
2949