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

Hi i try to get all row of a model in odoo 9

But, it returns only 290 rows of total 310 rows of data that I count directly via pgadmin.

Is there any otherway to do this and get all data in ir.ui.menu?

I try to get data with this :

menu_ids = request.env['ir.ui.menu'].sudo().search([])
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi

Maybe there is some menu that is not active so it can't be retrieved by search.

I suggest you to try this

menu_ids = request.env['ir.ui.menu'].with_context(active_test=False).search([])
Hope it helps!!

อวตาร
ละทิ้ง
ผู้เขียน

Hi I try this but it's giving me less record than before

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 23
5959
5
มิ.ย. 21
23860
Implement PostGres on Remote Server แก้ไขแล้ว
2
พ.ค. 21
12661
1
ก.ค. 16
6580
1
มี.ค. 15
5404