Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
10872 Widoki

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([])
Awatar
Odrzuć
Najlepsza odpowiedź

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!!

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
1
lip 23
5356
5
cze 21
23018
2
maj 21
12175
1
lip 16
6172
1
mar 15
4898