diff options
| author | Géry Debongnie <ged@odoo.com> | 2017-02-23 10:36:13 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | 136292f6890ff730b5a9fd70eb503d4f6a0f9c4a (patch) | |
| tree | 3ded3049b78c6c901acbdd1b5609d9f77bfd2b3e /addons/web/static/src/js/_deprecated/data_model.js | |
| parent | 173896b62d2c2d3c4acc6be75c3396b29887e4fb (diff) | |
[REF] web, *: move CompoundContext out of data.js
We want to remove data.js, but we still need the CompoundContext class,
so we take it out, and rename it 'Context'
Diffstat (limited to 'addons/web/static/src/js/_deprecated/data_model.js')
| -rw-r--r-- | addons/web/static/src/js/_deprecated/data_model.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/web/static/src/js/_deprecated/data_model.js b/addons/web/static/src/js/_deprecated/data_model.js index f722339167f..3bae06a3f4c 100644 --- a/addons/web/static/src/js/_deprecated/data_model.js +++ b/addons/web/static/src/js/_deprecated/data_model.js @@ -1,6 +1,7 @@ odoo.define('web.DataModel', function (require) { "use strict"; +var Context = require('web.Context'); var data = require('web.data'); var Model = require('web.Model'); var pyeval = require('web.pyeval'); @@ -31,10 +32,10 @@ Model.include({ * combined with the provided context if any * * @param {Object} [context] to combine with the model's internal context - * @returns {instance.web.CompoundContext} The union of the user's context and the model's internal context, as well as the provided context if any. In that order. + * @returns {web.Context} The union of the user's context and the model's internal context, as well as the provided context if any. In that order. */ context: function (context) { - return new data.CompoundContext(session.user_context, this._context, context || {}); + return new Context(session.user_context, this._context, context || {}); }, /** * Call a method (over RPC) on the bound OpenERP model. |
