is it possible to call a method of http.Controller via xmlrpc?
Se marcó esta pregunta
1
Responder
2012
Vistas
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.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
3
jul 25
|
5791 | ||
|
|
1
oct 24
|
4226 | ||
|
|
1
abr 24
|
4161 | ||
|
|
0
sept 23
|
3411 | ||
|
|
1
jun 23
|
3661 |