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:
@@ -2613,6 +2613,7 @@
|
||||
view_ids.shift();
|
||||
}
|
||||
cell.click(event => {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
var params = {};
|
||||
params.model = this.attributes.relation;
|
||||
|
||||
Reference in New Issue
Block a user