From 28529f4edfffa4818bb86a4d59e2510dba355f24 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Wed, 25 May 2016 08:22:05 +0200 Subject: [PATCH] [FIX] pass dataset's context to search_count (#358) --- .../static/src/js/web_search_autocomplete_prefetch.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web_search_autocomplete_prefetch/static/src/js/web_search_autocomplete_prefetch.js b/web_search_autocomplete_prefetch/static/src/js/web_search_autocomplete_prefetch.js index b9f82588..1ff401ef 100644 --- a/web_search_autocomplete_prefetch/static/src/js/web_search_autocomplete_prefetch.js +++ b/web_search_autocomplete_prefetch/static/src/js/web_search_autocomplete_prefetch.js @@ -33,7 +33,8 @@ openerp.web_search_autocomplete_prefetch = function(instance) return self.autocomplete_mutex.exec(function() { return self.view.dataset._model.call( - 'search_count', [domain.eval()]) + 'search_count', [domain.eval()], + {context: self.view.dataset.get_context()}) .then(function(count) { if(count)