تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
10891 أدوات العرض

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
يوليو 23
5383
5
يونيو 21
23065
2
مايو 21
12190
1
يوليو 16
6189
1
مارس 15
4934