[IMP] web: add capability to disable records drag/drop on kanban views

This commit adds a recordsDraggable option on the kanban view that allows to completly disable
the drag and drop feature.

This is a preliminary work for the social 'Feeds' kanban where the user should not be able to drag and drop posts.
This commit is contained in:
Aurélien Warnon
2019-09-20 12:12:09 +00:00
parent f783a1cc94
commit 869a5b83a5
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -1052,6 +1052,8 @@ attributes:
whether it should be possible to create records without switching to the
form view. By default, ``quick_create`` is enabled when the Kanban view is
grouped by many2one, selection, char or boolean fields, and disabled when not.
``records_draggable``
whether it should be possible to drag records when kanban is grouped. Default: true.
Set to ``true`` to always enable it, and to ``false`` to always disable it.