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

I have a one2many field:

'items':fields.one2many('mymodule.product', 'parentid', 'Items'),

I would like the one2many widget to show only 10 items most. If there are more items pagination should be use.

How can I do it?

 

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

I finally solved my problem creating my own widget.

Isn´t there anybody who has developed an odoo widget that provides a better one2many listview?

الصورة الرمزية
إهمال

@Ratmil, Are you doing this list view for the frontend web shop? I am looking into building a similar widget/module that extends the default shop category view to allow for better sorting including grid view (multiple styles) and list view. If you are working on something similar would you be willing to share your work so that we can collaborate instead of doubling up on the same functionality? My github organisation is here: github.com/odoocommunitywidgets There's a lot of vapourware there as placeholders at the moment for when I have time to build each module, however this particular functionality is the next on my todo list for my own projects.

المنشورات ذات الصلة الردود أدوات العرض النشاط
4
ديسمبر 16
15472
1
يوليو 19
10396
1
فبراير 16
8346
1
أبريل 24
6289
5
يناير 24
12754