summaryrefslogtreecommitdiff
path: root/addons/google_spreadsheet/static
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2017-03-16 14:01:45 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commite1b68dae50a0ffd8eadeafd823acb328c429b7fe (patch)
tree395582b27a9e374390a0cda780f13b8fc22c5116 /addons/google_spreadsheet/static
parentf738edb1d65b5f92436f8ac0b69de42639a071e4 (diff)
[FIX] web, *: fix domain building without CompoundDomain
* board, google_spreadsheet Commit 8e0c7ccc77f358601b0701536fcb33842ca324a6 got rid of the CompoundDomain class but did not adapt the code correctly. - Domains have to be concatened, not regrouped in a big array - String domains have to be converted to array - "OR" joining must normalize subdomains first (add explicit "AND"s)
Diffstat (limited to 'addons/google_spreadsheet/static')
-rw-r--r--addons/google_spreadsheet/static/src/js/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/google_spreadsheet/static/src/js/search.js b/addons/google_spreadsheet/static/src/js/search.js
index b715282e551..a9f8e392d0a 100644
--- a/addons/google_spreadsheet/static/src/js/search.js
+++ b/addons/google_spreadsheet/static/src/js/search.js
@@ -33,7 +33,7 @@ FavoriteMenu.include({
ds = new data.DataSet(this, 'google.drive.config');
_.each(sv_data.domains, function (d) {
- domain.push(Domain.prototype.stringToArray(d));
+ domain.push.apply(domain, Domain.prototype.stringToArray(d));
});
ds.call('set_spreadsheet', [model, Domain.prototype.arrayToString(domain), groupbys, list_view_id])
.done(function (res) {