Don't raise popup when there is no tree_open action for the row

This commit is contained in:
Cédric Krier committed 2015-09-13 10:36:18 +02:00
1 parent 144ed9a86c
commit d8529fc404
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -92,6 +92,10 @@
alwaysask = false;
}
var prm = jQuery.Deferred();
if (jQuery.isEmptyObject(values)) {
prm.fail();
return prm;
}
var keys = Object.keys(values).sort();
if ((keys.length == 1) && (!alwaysask)) {
var key = keys[0];
+1 -1
View File
@@ -863,7 +863,7 @@
'model': this.model_name,
'id': this.get_id(),
'ids': [this.get_id()]
}, jQuery.extend({}, this.context));
}, jQuery.extend({}, this.context), false);
} else {
this.switch_view('form');
}