Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4512 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
giu 25
2497
0
dic 24
1365
0
mag 24
1657
1
mar 24
1582
2
feb 24
2903