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 catch multiple values after the query run & put it in a python array?

By
Tauseef
on 12/10/15, 6:16 AM 389 views

For odoo 8:::

Now using this I can get one value

sqary1="SELECT name FROM p_task where id ="+str(mem_id)

  str2= str(self.env.cr.fetchone()[0])

if my query is this:::::::::::::::             "SELECT ALL  FROM p_task"
then I get multiple values.How I can enter all this values in a python array?
what to write instead of str(self.env.cr.fetchone()[0]) to catch this multiple values in an array

TIA

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

1 follower(s)

Stats

Asked: 12/10/15, 6:16 AM
Seen: 389 times
Last updated: 12/10/15, 8:19 AM