is it possible to call a method of http.Controller via xmlrpc?
Cette question a été signalée
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.
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
3
juil. 25
|
5699 | ||
|
|
1
oct. 24
|
4160 | ||
|
|
1
avr. 24
|
4070 | ||
|
|
0
sept. 23
|
3305 | ||
|
|
1
juin 23
|
3623 |