Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
7463 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
juin 25
217
1
juin 25
250
1
mai 25
801
0
mars 25
427
1
déc. 24
3054