Skip to Content
Menu
This question has been flagged
2823 Views

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.

Avatar
Discard
Related Posts Replies Views Activity
0
Nov 24
68
2
May 24
1052
0
Feb 23
1273
0
Aug 22
1269
0
Mar 22
1263