3
0
Fork 0

[FIX] pass dataset's context to search_count

10.0
Holger Brunn 2016-05-16 11:24:48 +02:00
parent 9766608c6f
commit 23b69e1bb0
No known key found for this signature in database
GPG Key ID: 01C9760FECA3AE18
1 changed files with 2 additions and 1 deletions

View File

@ -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)