Skip to Content
Menú
This question has been flagged
1 Respondre
7498 Vistes

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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
1
de juny 25
432
1
de juny 25
373
1
de maig 25
972
0
de març 25
572
1
de des. 24
3343