Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
11133 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
heinäk. 23
5687
5
kesäk. 21
23433
2
toukok. 21
12471
1
heinäk. 16
6412
1
maalisk. 15
5177