Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
7502 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
cze 25
441
1
cze 25
376
1
maj 25
979
0
mar 25
575
1
gru 24
3351