Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to get a translated record?

Jairo Llopis
on 2/25/14, 5:53 AM 729 views

This code returns a string in english:

description = (pool.get('ir.model.data')

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 2/25/14, 5:53 AM
Seen: 729 times
Last updated: 3/16/15, 8:10 AM