コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3833 ビュー

In POS Session, when click on Validate button in mean time, I need to send order data for Javascript (RPC call) to python function. Tp performed some operations and then send back to JS.


Is the any piece of JS call to python function and get data back to JS method. (for V14).

アバター
破棄
最善の回答
rpc.query({
model: 'product.product',
method: 'search_read',
args: [domain, ['id']],
kwargs: {
limit: 1,
}
}).then(function (products) {
if (products.length){
next(resolve, reject);
} else {
resolve();
}
});

Use rpc.query as above.

アバター
破棄
関連投稿 返信 ビュー 活動
1
11月 21
6357
1
2月 16
4013
2
7月 24
1621
1
5月 23
7934
1
9月 20
9348