コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6946 ビュー

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
15472
1
7月 19
10393
1
2月 16
8344
1
4月 24
6288
5
1月 24
12750