[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 in 26f91c429).

opw-705329
closes #16698
This commit is contained in:
Nicolas Lempereur
2017-05-03 15:29:16 +02:00
parent 85e21d1725
commit 8f1cc2fadb
@@ -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) {