is it possible to call a method of http.Controller via xmlrpc?
This question has been flagged
1
Reply
1938
Views
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
3
Jul 25
|
5609 | ||
|
|
1
Oct 24
|
4083 | ||
|
|
1
Apr 24
|
4005 | ||
|
|
0
Sep 23
|
3154 | ||
|
|
1
Jun 23
|
3541 |