Hi all,
I want to get current user's password in POS module in Odoo 8. Because default loader which loaded database didn't load user's password. So, I used fetch for do that. Unlucky, It didn't work. Can any one help me?
Here is my code :
var password = ' ';
var loaded = fetch('res.users', ['id', 'name', 'password'],[['id', '=', instance.session.uid]]).then(function(users){
password = users[0].password;
});
alert(password);
Whole code are in a function and when I click a button, this function will be called. Where is my wrong?
Thanks