Skip to Content
Menu
This question has been flagged
1 Reply
7488 Views

Send parameters python to javascript

Greetings again,

I have a function in python that filters data from sale_order_line me,

there is a way to send this data filtered javascript to be treated there ....

Thanks for responding

Avatar
Discard
Best Answer

You have to ask from javascript side:

var model = new instance.web.Model("your_model_name"); model.call("your_function_name", [], {context: new instance.web.CompoundContext()}).then(function(result) {
console.log('Here is the result:'+result); // if the result can be concatenate with string
})

Avatar
Discard
Related Posts Replies Views Activity
1
Jun 25
397
1
Jun 25
350
1
May 25
946
0
Mar 25
553
1
Dec 24
3293