Skip to content
Snippets Groups Projects
Commit 8f1cc2fa authored by Nicolas Lempereur's avatar Nicolas Lempereur
Browse files

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

opw-705329
closes #16698
parent 85e21d17
Branches
Tags 5.0.0-rc2-addons
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment