跳至內容
選單
此問題已被標幟
1 回覆
7594 瀏覽次數

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

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
7月 25
150
0
6月 25
431
1
6月 25
686
1
6月 25
706
1
5月 25
1242