how can I search in 'res.users' to get list of ids of users in .js. I tried
var Users = new openerp.Model('res.users');
Users.query(['id']) .filter([['active', '=', true]]) .limit(15) .all().then(function (users) {
// do work with users records
alert(users);
});
It searches something , however I do not know if it is correct or wrong, I am not able to get list of ids from this code.