Greetings,
The problem is that my RPC query returns undefined. I'm writing this code in kanban_column.js
_getLoad: function () {
this._rpc({
model: 'project.task.type.load',
method: 'get_currentload',
args: [this.id],
},{
shadow: true,
}).then(function (returned_value) { return returned_value; });
},
When I inspect code in debugger whenever this.title has value code just skips my custom function. And after this.title values end and become undefined, my function then returns value. So when there is record my function won't execute after records passes my function starts executing, but I can't then assign my function in record because there is none. My function returns only string, but I want to get specific record value.
What I'm doing wrong? Does rpc.query executes after records have been loaded only? How can I fix that? I looked in examples everything seems same.