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/chrome/sidebar.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/chrome/sidebar.js')
| -rw-r--r-- | addons/web/static/src/js/chrome/sidebar.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/addons/web/static/src/js/chrome/sidebar.js b/addons/web/static/src/js/chrome/sidebar.js index 79b06f9ee4d..b57e94e422c 100644 --- a/addons/web/static/src/js/chrome/sidebar.js +++ b/addons/web/static/src/js/chrome/sidebar.js @@ -1,6 +1,7 @@ odoo.define('web.Sidebar', function (require) { "use strict"; +var Context = require('web.Context'); var core = require('web.core'); var data = require('web.data'); var Dialog = require('web.Dialog'); @@ -144,15 +145,15 @@ var Sidebar = Widget.extend({ active_ids_context.active_domain = domain; } var c = pyeval.eval('context', - new data.CompoundContext( + new Context( sidebar_eval_context, active_ids_context)); self.rpc("/web/action/load", { action_id: item.action.id, - context: new data.CompoundContext( + context: new Context( dataset.get_context(), active_ids_context).eval() }).done(function(result) { - result.context = new data.CompoundContext( + result.context = new Context( result.context || {}, active_ids_context) .set_eval_context(c); result.flags = result.flags || {}; |
