Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
3636 Переглядів

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.

Аватар
Відмінити

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

Найкраща відповідь

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() {})
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
вер. 24
14316
0
квіт. 18
2445
1
лип. 19
6318
2
лип. 24
2339
1
черв. 24
4859