Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
7545 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
jun. 25
279
1
jun. 25
581
1
jun. 25
566
1
mai. 25
1147
0
mar. 25
663