From 2e60aef7b0d767e78aff83893eb2d78f5e69b0a5 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Fri, 9 Jun 2017 10:41:58 +0200 Subject: [PATCH] Call parent event handlers when clicking an unselected button Event handler must return true to ensure other event handlers are called. issue6522 review40381002 --- src/view/tree.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/view/tree.js b/src/view/tree.js index 8ad4d1a69c..1be180ba09 100644 --- a/src/view/tree.js +++ b/src/view/tree.js @@ -1689,7 +1689,8 @@ var record = event.data[0]; var button = event.data[1]; if (record != this.screen.current_record) { - return; + // Need to raise the event to get the record selected + return true; } var states = record.expr_eval(this.attributes.states || {}); if (states.invisible || states.readonly) {