Skip to Content
Menu
This question has been flagged
1 Atsakyti
7603 Rodiniai

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

Portretas
Atmesti
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
})

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
liep. 25
234
0
birž. 25
456
1
birž. 25
701
1
birž. 25
727
1
geg. 25
1273