From e1b68dae50a0ffd8eadeafd823acb328c429b7fe Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 16 Mar 2017 14:01:45 +0100 Subject: [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) --- addons/google_spreadsheet/static/src/js/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/google_spreadsheet/static/src') 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) { -- cgit v1.2.3