[FIX] web_kanban: double click double action
When multiple clicking fast (and with the server not too fast), we could end up with an error (eg. "Cannot read property 'controller' of null"). Something has been done previously to improve this when switching between views in:fc8a4b5e. This commit do something similar to limit multiple click on kanban records (doing it as in26f91c429). opw-705329 closes #16698
This commit is contained in:
@@ -40,6 +40,8 @@ var KanbanRecord = Widget.extend({
|
||||
this.sub_widgets = [];
|
||||
|
||||
this.init_content(record);
|
||||
// avoid quick multiple clicks
|
||||
this.on_kanban_action_clicked = _.debounce(this.on_kanban_action_clicked, 300, true);
|
||||
},
|
||||
|
||||
init_content: function (record) {
|
||||
|
||||
Reference in New Issue
Block a user