Odoo Help

Welcome!

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.

0

Translate term get by SQL Queries

By
Selverine
on 1/10/14, 7:01 AM 894 views

Hi everybody,

I have a field that gets a string from a SQL Queries

     v = {}
    cr.execute('select distinct name from product_desc where id = '1'')
    res = cr.fetchall()     
    v['my_field'] = res[0]

The field product_desc.name is a translate one (translate = true)

But the problem is my v['my_field'] is only in English and not in another language. If possible I would like to have my term in the language of my sale_order (the v['my_field'] is in sale.py)

Someone has an idea please?

Thanks a lot,

Selverine

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)

Stats

Asked: 1/10/14, 7:01 AM
Seen: 894 times
Last updated: 3/16/15, 8:10 AM