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

How to display retrieved values from a query in a one2many_list

By
Pablo Gomez
on 9/13/13, 8:32 AM 625 views

Hi, I have a sql query that returns 3 fields for every success in the database

sql=''' select field1, field2,field3........'''

cr.execute(sql)

The problem is that I have no idea how to display those values in a one2many_list in my view.

I have troubles too declarating the field that is gonna display the list. Not sure if has to be fields.function(type="one2many") or what.

Any help would be awesome. TY guys!

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: 9/13/13, 8:32 AM
Seen: 625 times
Last updated: 3/16/15, 8:10 AM