Allow to open in new tab Many2One and Reference

issue7324
review47301002
This commit is contained in:
Cédric Krier
2018-05-23 23:18:54 +02:00
parent b62bba2bac
commit 7d527be7b9
2 changed files with 11 additions and 1 deletions
+1
View File
@@ -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
+10 -1
View File
@@ -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();