콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
7106 화면

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
12월 16
15650
1
7월 19
10519
1
2월 16
8527
1
4월 24
6461
5
1월 24
12935