diff --git a/CHANGELOG b/CHANGELOG index 71b8b16ab5..64d95a80f3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/src/screen.js b/src/screen.js index a3aeab2969..09f05cf98b 100644 --- a/src/screen.js +++ b/src/screen.js @@ -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 = {};