Browse Source
[FIX] pass dataset's context to search_count
pull/1030/head
Holger Brunn
9 years ago
No known key found for this signature in database
GPG Key ID: 1C9760FECA3AE18
1 changed files with
2 additions and
1 deletions
-
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) |
|
|
|