Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5466 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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?

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

คำตอบที่ดีที่สุด

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 ;-)

อวตาร
ละทิ้ง