Kanban Drag Drop Control
Control "Drag & Drop" action in the Kanban View
Kanban Drag Drop Control
Control "Drag & Drop" action in the Kanban View
KANBAN DRAG DROP CONTROL
by CLuedoo
STORY BEHIND THE FEATURES
ODOO BEHAVIOR
In the Kanban View, Odoo does not offer precise control over the "Drag & drop" action. Sometimes, you may not want to allow your employees to drag and drop between columns as this may result in unexpected results. For example, if an end-user groups products by category, he/she can change the category of a product by mistake just by dragging/dropping to the wrong one.
CLUEDOO BEHAVIOR
This module adds extra attributes to the Kanban View in order to precisely control the allowed actions. You can specify if dragging columns is enabled or not. You can disable/enable dragging cards (records) between columns and you can completely disable sorting and dragging.
MODULE +
CLUEDOO RECOMMENDATIONS
HOW TO USE THIS MODULE
1
On Setting → active developer mode, and we go to apps that have kanban view. In this example, we go to CRM apps. In Odoo Standard we can drag and drop Kanban cards. In this section, we make restrictions in Kanban View.
to disable drag drop record between columns add this code in View: Kanban:
disable_drag_drop_record="true" into the <kanban> tag.
To disable drag-drop and sorting records add :
disable_sort_record="true" into the <kanban> tag.
To disable sorting columns add :
disable_sort_column="true" into the <kanban> tag.
2
Example:
<kanban
disable_sort_column="True" disable_sort_record="True" disable_drag_drop_record="True"
</kanban>
Result: We can not drag and drop Kanban view