Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
10912 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
1
jul. 23
5405
5
jun. 21
23094
2
mei 21
12232
1
jul. 16
6245
1
mrt. 15
4953