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

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
6月 25
424
1
6月 25
355
1
5月 25
955
0
3月 25
566
1
12月 24
3310