diff options
Diffstat (limited to 'addons/base/static/src/js/data.js')
| -rw-r--r-- | addons/base/static/src/js/data.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/base/static/src/js/data.js b/addons/base/static/src/js/data.js index b3ddd7750c8..d9b2ca752c2 100644 --- a/addons/base/static/src/js/data.js +++ b/addons/base/static/src/js/data.js @@ -590,6 +590,7 @@ openerp.base.ReadOnlyDataSetSearch = openerp.base.DataSetSearch.extend({ openerp.base.CompoundContext = function() { this.__ref = "compound_context"; this.__contexts = []; + this.__eval_context = null; var self = this; _.each(arguments, function(x) { self.add(x); @@ -602,6 +603,13 @@ openerp.base.CompoundContext.prototype.add = function(context) { this.__contexts.push(context); return this; }; +openerp.base.CompoundContext.prototype.set_eval_context = function(eval_context) { + this.__eval_context = eval_context; + return this; +}; +openerp.base.CompoundContext.prototype.get_eval_context = function() { + return this.__eval_context; +}; openerp.base.CompoundDomain = function() { this.__ref = "compound_domain"; |
