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)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier
2025-12-29 15:50:58 +01:00
parent 984c560eb6
commit abe33cd900
+1
View File
@@ -2613,6 +2613,7 @@
view_ids.shift();
}
cell.click(event => {
event.preventDefault();
event.stopPropagation();
var params = {};
params.model = this.attributes.relation;