Add the context model name in the screen context

issue7117
review41841002
This commit is contained in:
Sergi Almacellas Abellana
2018-03-22 11:21:11 +01:00
parent 1299a868c1
commit 48f8d37e7e
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
* Add the context model name in the screen context
* Add sum of records on list view
* Add shortcuts to Date and DateTime widgets
* Use limit to expand tree
+5 -1
View File
@@ -900,7 +900,11 @@
}.bind(this));
},
context: function() {
return this.group.context();
var context = this.group.context();
if ( this.context_screen ){
context.context_model = this.context_screen.model_name;
}
return context;
},
set_group: function(group) {
var fields = {};