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

Hello everybody;

I have a python function that i need to call from a js file.

But need your help to know how it works with jqwery.

Thanks a lot in advance.

Best regards.

Imagine profil
Abandonează

Do you mean to call a controller function from the JS file?

Cel mai bun răspuns

Yes, you can do it using controller in javascript.

Make an rpc call as below inside controller:

self._rpc({
model: <your_model_name>,
method: '<your_method_name>',
args: [data[key]],
context: session.user_context,
}).done(function() {}).fail(function() {})
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
sept. 24
13831
0
apr. 18
2315
1
iul. 19
6042
2
iul. 24
1712
1
iun. 24
4297