is it possible to call a method of http.Controller via xmlrpc?
Deze vraag is gerapporteerd
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.
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden| Gerelateerde posts | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
|
|
3
jul. 25
|
5709 | ||
|
|
1
okt. 24
|
4169 | ||
|
|
1
apr. 24
|
4083 | ||
|
|
0
sep. 23
|
3344 | ||
|
|
1
jun. 23
|
3632 |