summaryrefslogtreecommitdiff
path: root/addons/google_spreadsheet/static
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-02-23 10:36:13 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commit136292f6890ff730b5a9fd70eb503d4f6a0f9c4a (patch)
tree3ded3049b78c6c901acbdd1b5609d9f77bfd2b3e /addons/google_spreadsheet/static
parent173896b62d2c2d3c4acc6be75c3396b29887e4fb (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/google_spreadsheet/static')
-rw-r--r--addons/google_spreadsheet/static/src/js/search.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/google_spreadsheet/static/src/js/search.js b/addons/google_spreadsheet/static/src/js/search.js
index bc91ad1ed83..0a08667e26a 100644
--- a/addons/google_spreadsheet/static/src/js/search.js
+++ b/addons/google_spreadsheet/static/src/js/search.js
@@ -2,6 +2,7 @@ odoo.define('google_spreadsheet.google.spreadsheet', function (require) {
"use strict";
var ActionManager = require('web.ActionManager');
+var Context = require('web.Context');
var core = require('web.core');
var data = require('web.data');
var FavoriteMenu = require('web.FavoriteMenu');
@@ -28,7 +29,7 @@ FavoriteMenu.include({
list_view = this.view_manager.views.list,
list_view_id = list_view ? list_view.view_id : false,
context = this.searchview.dataset.get_context() || [],
- compound_context = new data.CompoundContext(context),
+ compound_context = new Context(context),
compound_domain = new data.CompoundDomain(context),
groupbys = pyeval.eval('groupbys', sv_data.groupbys).join(" "),
ds = new data.DataSet(this, 'google.drive.config');