Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
11241 Tampilan

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([])
Avatar
Buang
Jawaban Terbai

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!!

Avatar
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
1
Jul 23
5823
5
Jun 21
23652
2
Mei 21
12590
1
Jul 16
6506
1
Mar 15
5262