Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
9532 Lượt xem

One of my modules has a kanban view with a couple hundred items to show, but by default I only get 40 at a time and the user has to keep hitting the 'show more (xxx remaining)' button to see everything. What's worse, if the user goes to the form view and then back to the kanban view, s/he has to start over with clicking an the 'show more' button.

Is there any way to increase that limit?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello,

In kanban.js there is a finction init(), Where you find following code :

this.limit = options.limit || 40;

Change the limit value from 40 to the number of records you want to display like :

this.limit = options.limit || 60;

I have made it as 60, Which shows me 60 records at a time.

Thanks.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

The correct way of doing this should not imply modifying native code in core modules. This other thread approaches this issue correctly:

https://www.odoo.com/es_ES/forum/help-1/question/overriding-number-of-items-in-a-kanban-view-with-a-custom-module-59647 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 25
1786
0
thg 8 22
2658
0
thg 3 22
2629
1
thg 10 19
5570
2
thg 5 18
6469