Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
7865 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
lug 25
626
1
lug 25
5673
0
lug 25
1299
0
giu 25
1241
1
giu 25
1321