跳至內容
選單
此問題已被標幟
1 回覆
11232 瀏覽次數

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

相關帖文 回覆 瀏覽次數 活動
1
7月 23
5820
5
6月 21
23649
2
5月 21
12586
1
7月 16
6504
1
3月 15
5261