Odoo Help


How to catch multiple values after the query run & put it in a python array?

on 12/10/15, 6:16 AM 959 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


About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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