Odoo Help


How to get all ids in printing mutiple records?

willie ho
on 3/10/15, 1:53 AM 1,614 views

I would like to print report for multi records by choosing them in a tree view.

Can I get id(or other field) for all the records?


Mariusz Mizgier

--Mariusz Mizgier--
| 4 1 7
SOPOT, Poland
--Mariusz Mizgier--

OpenERP developer

Mariusz Mizgier
On 3/10/15, 2:02 AM

For Odoo v7 it will be context.get('active_ids')

For Odoo v8 it will be self.env.context.get('active_ids') 

Both will return a list of selected ids (if in tree view) or a single element list if in form view and used an action button.

Thanks Mrizgier, but how can i pass context to the report?

willie ho
on 3/10/15, 2:55 AM

How do you print your report? Sxw, mako or aeroo template?

Currenda Sp. z o.o., Mariusz Mizgier
on 3/10/15, 3:01 AM
Mariusz Rajfura
On 3/15/15, 5:17 PM

I subscribe to the questions.

How pass to qweb report ids of all records from tree view, because selecting on screen gives fixed amount (typically 80). I don't want to change this default setting for e.g. for 100000 ;-)

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

2 follower(s)


Asked: 3/10/15, 1:53 AM
Seen: 1614 times
Last updated: 3/16/15, 8:10 AM