I Use odoo 10 and want to change pivot_view.js
I'm really confused with this code. I can't change the value. Can you explain me about the right code ? This is my code :
var value = false;
new Model('lhp.master').call('getValues', ['date', 'idx']).then(
function (result) { value = result[0]; }
);
console.log('value =',value);
Thank you for your help.