Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3487 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns
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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
nov. 21
5821
1
feb. 16
3700
2
iul. 24
1141
1
mai 23
7531
1
sept. 20
9036