Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
11273 Переглядів

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([])
Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Автор

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

Related Posts Відповіді Переглядів Дія
1
лип. 23
5856
5
черв. 21
23693
2
трав. 21
12615
1
лип. 16
6541
1
бер. 15
5309