跳至内容
菜单
此问题已终结
1 回复
5449 查看

I want to disable drag-drop of the kanban tickets for specific object in v12 & v13.

Is there a way to do so without JS coding?

Thanks in advance.

形象
丢弃
最佳答案

Yes, you can do it by adding readonly="1" attribute in the state/stage_id field in kanban view in XML file.

Ex:

# Add readonly="1" to the field on which groupby is used in kanban
<kanban>
<field name="stage_id" readonly="1"/> or
<field name="state" readonly="1"/>
</kanban>

        // Deactivate the drag'n'drop if the groupedBy field:
        // - is a date or datetime since we group by month or
        // - is readonly (on the field attrs or in the view)

形象
丢弃
相关帖文 回复 查看 活动
1
3月 25
5650
4
7月 16
5276
1
1月 25
1858
0
2月 25
2771
0
8月 22
2703