details: https://code.tryton.org/tryton/commit/57df2d1997ac
branch: 7.4
user: Cédric Krier <[email protected]>
date: Mon Dec 29 15:50:58 2025 +0100
description:
Prevent default event when clicking on Many2One link from a tree view
If the event is not prevented, the URL is cleared if there is already a
tab for
the resource because the tab show event update the URL before the
execution of
the default event.
Closes #14453
(grafted from 4f4137559b00b9f377a0f6f0c918e292297a8950)
diffstat:
sao/src/view/tree.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 25c32920cf65 -r 57df2d1997ac sao/src/view/tree.js
--- a/sao/src/view/tree.js Fri Jan 02 11:00:23 2026 +0100
+++ b/sao/src/view/tree.js Mon Dec 29 15:50:58 2025 +0100
@@ -2581,6 +2581,7 @@
view_ids.shift();
}
cell.click(event => {
+ event.preventDefault();
event.stopPropagation();
var params = {};
params.model = this.attributes.relation;