details:   https://code.tryton.org/tryton/commit/4f4137559b00
branch:    default
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
diffstat:

 sao/src/view/tree.js |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 6dcd91194420 -r 4f4137559b00 sao/src/view/tree.js
--- a/sao/src/view/tree.js      Sat Jan 03 12:53:56 2026 +0100
+++ b/sao/src/view/tree.js      Mon Dec 29 15:50:58 2025 +0100
@@ -2782,6 +2782,7 @@
                 view_ids.shift();
             }
             cell.click(event => {
+                event.preventDefault();
                 event.stopPropagation();
                 var params = {};
                 params.model = this.attributes.relation;

Reply via email to