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

Hello,


I have a model, A, which is the main model, and model, B, which is model A's state model. My initial goal was to be able to specify the order of the Kanban columns via the sequence of model B. This works, but I cannot prevent the columns from being draggable. 

I currently prevent the user from saving the changes once they drag it, but ideally they wouldn't be able to drag it in the first place. I have tried all kanban tag modifiers in the documentation and tried making the entirety of model B readonly.

The goal is to prevent dragging completely in the Kanban.

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

Hiii,

Please use this

records_draggable="false" default_group_by="student_id">

Thanks

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

Yes, you can disable the drag-drop of the ticket in kanban.

You just need to make the field readonly which you have used to group the kanban.

Ex:

field name="stage_id" readonly="1" # in kanban view

Here, I have used stage_id field to group the kanban tickets and make it readonly so that the user cannot drag-drop.


Similar Question: Disable kanban ticket drag-drop

Ảnh đại diện
Huỷ bỏ

XML Code of kanban view:

<field name="stage_id" readonly="1"/>

I think he means, the reordering of the actual columns themselves, not the kanban records?

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 20
5356
3
thg 4 20
6611
7
thg 8 25
27757
1
thg 4 22
5525
0
thg 5 19
6130