Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
11191 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
1
čvc 23
5766
5
čvn 21
23541
2
kvě 21
12540
1
čvc 16
6450
1
bře 15
5227