Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
10916 Vues

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
Ignorer
Meilleure réponse

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

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

Publications associées Réponses Vues Activité
1
juil. 23
5407
5
juin 21
23105
2
mai 21
12234
1
juil. 16
6246
1
mars 15
4954