Allow to open in new tab Many2One and Reference
issue7324 review47301002
This commit is contained in:
@@ -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
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user