Browse Source

[FIX] pass dataset's context to search_count (#358)

pull/363/head
Holger Brunn 8 years ago
parent
commit
28529f4edf
  1. 3
      web_search_autocomplete_prefetch/static/src/js/web_search_autocomplete_prefetch.js

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

Loading…
Cancel
Save