mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] pass dataset's context to search_count
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user