Odoo Help

0

0
2 Answers
2
Avatar

Manish Kumar Bohra

--Manish Kumar Bohra--

8477
| 6 4 10
Bikaner, India
--Manish Kumar Bohra--


Manish Kumar Bohra
12/10/18, 7:59 AM

Hello ,

If you get list of id than you can browse id and get related value from this.

1
Avatar

subbarao

--subbarao--

1226
| 5 1 7
Chennai, India
--subbarao--


subbarao
12/10/18, 7:59 AM

Hello Haresh,

I don't know why you are using sql query to get result.

but there is solution for this, your getting out put like this [{'id':90},{'id':99}]
then do one think

your orm object example sale.order

sale_obj = self.env['sale.order']

result = request.env.cr.dictfetchall()

if result:
    for single_dict in result:
        sale_obj += self.env['sale.order'].browse(single_dict['id'])

 


Ask a Question
Writer
Keep Informed
1 follower(s)
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.

Register
Odoo Training Center

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

Test it now