Skip to Content
Menú
This question has been flagged
1 Respondre
10877 Vistes

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
Descartar
Best Answer

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
Descartar
Autor

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

Related Posts Respostes Vistes Activitat
1
de jul. 23
5366
5
de juny 21
23045
2
de maig 21
12180
1
de jul. 16
6178
1
de març 15
4905