is it possible to call a method of http.Controller via xmlrpc?
To pytanie dostało ostrzeżenie
No, you can't directly call a method of http.Controller via RPC in Odoo. The RPC protocol in Odoo is used to interact with the models not with controllers. The http.Controller methods are meant to be called via HTTP requests.
If you need to expose a method to be called via RPC, you need to define it in a model. If the logic you need is currently in a controller method, you might have to refactor your code to move the necessary logic into a model method.
I hope this helps.
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
3
lip 25
|
5707 | ||
|
|
1
paź 24
|
4166 | ||
|
|
1
kwi 24
|
4079 | ||
|
|
0
wrz 23
|
3312 | ||
|
|
1
cze 23
|
3631 |