details:   https://code.tryton.org/tryton/commit/9f50c53201a8
branch:    7.8
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 05798a542194 -r 9f50c53201a8 sao/src/view/tree.js
--- a/sao/src/view/tree.js      Wed Dec 31 11:32:52 2025 +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