Finally, it doesn't seem to be possible to make a query to db in Frontend, nevertheless we still could make a function call :var website = openerp.website;
website.session.model('product.product')
.call('name_search', ['',[]], { context: website.get_context()})
.then(function(list){