Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

How to set limit of items for one2many list view?

By
Ratmil Torres
on 1/7/15, 10:00 AM 995 views

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?

 

0
Ratmil Torres
On 1/9/15, 4:11 PM

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.

Luke Branch
on 1/10/15, 1:16 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 1/7/15, 10:00 AM
Seen: 995 times
Last updated: 3/16/15, 8:10 AM