details:   https://code.tryton.org/tryton/commit/bd99adaea5a2
branch:    6.0
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 55d5d66452af -r bd99adaea5a2 sao/src/view/tree.js
--- a/sao/src/view/tree.js      Fri Jan 02 11:01:10 2026 +0100
+++ b/sao/src/view/tree.js      Mon Dec 29 15:50:58 2025 +0100
@@ -2327,6 +2327,7 @@
                 view_ids.shift();
             }
             cell.click(function(event) {
+                event.preventDefault();
                 event.stopPropagation();
                 var params = {};
                 params.model = this.attributes.relation;

Reply via email to