diff --git a/CHANGELOG b/CHANGELOG index 9f7449b056..2526e07ae8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,4 @@ +* Allow to open in new tab Many2One and Reference with CTRL key * Store session in browser storage * Increase the space available for tab list * Allow to toggle menu on large screen diff --git a/src/view/form.js b/src/view/form.js index 13ab2b06c1..07c10293a3 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -2324,9 +2324,18 @@ function eval_pyson(value){ return; } if (this.has_target(value)) { - var screen = this.get_screen(); var m2o_id = this.id_from_value(record.field_get(this.field_name)); + if (evt && evt.ctrlKey) { + var params = {}; + params.model = this.get_model(); + params.res_id = m2o_id; + params.mode = ['form']; + params.name = this.attributes.string; + Sao.Tab.create(params); + return; + } + var screen = this.get_screen(); callback = function(result) { if (result) { var rec_name_prm = screen.current_record.rec_name();