I creating web keyboard shortcut module, for ex. In my form i having a print button, In this button is calling a particular report, now I need to call ctrl +U to call that function. here function is calling well but ids getting none only. how to get a ids value, If I give in Print click means ids has some value. Here is my code.
$.ctrl('H', function() {
var self = this;
return new instance.web.Model('sample.table').call('read', [[self.id], new instance.web.CompoundContext()])
.then(function(){
var self = this;
return new instance.web.Model('sample.table').call('print_quotation',[[self.ids]])
});
});
// window.print();
}