Odoo Help

0

0
2 Answers
2
Avatar

Manish Kumar Bohra

--Manish Kumar Bohra--
8801
| 6 4 10
Bikaner, Índia
--Manish Kumar Bohra--


Manish Kumar Bohra
10/12/18 07:59

Hello ,

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

1
Avatar

subbarao

--subbarao--

1299
| 5 2 8
Chennai, Índia
--subbarao--


subbarao
10/12/18 07:59

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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now