From 1bcbca4be3ab2b8270f6ad82a508e12f9b213ec5 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 2 Sep 2016 10:41:58 +0200 Subject: [PATCH] [FIX] web: statusbar click When the statusbar is clicked, a `debounce` function prevents a doucle-click, and therefore making several `write` calls. In debug mode, the click doesn't work anymore. For some mysterious reason, the event is propagated to the parent. The `currentTarget` is not the `li` element, but the parent `ul`. By setting the `immediate` argument to `true` (execute the first function instead of the last), this solves the issue. --- addons/web/static/src/js/views/form_widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/views/form_widgets.js b/addons/web/static/src/js/views/form_widgets.js index 4f652d9bf2a..3b630d4232d 100644 --- a/addons/web/static/src/js/views/form_widgets.js +++ b/addons/web/static/src/js/views/form_widgets.js @@ -1559,7 +1559,7 @@ var FieldStatus = common.AbstractField.extend({ }); } } - }, 300), + }, 300, true), }); var FieldMonetary = FieldFloat.extend({