is it possible to call a method of http.Controller via xmlrpc?
Pertanyaan ini telah diberikan tanda
1
Balas
1957
Tampilan
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.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
|
3
Jul 25
|
5627 | ||
|
|
1
Okt 24
|
4101 | ||
|
|
1
Apr 24
|
4018 | ||
|
|
0
Sep 23
|
3211 | ||
|
|
1
Jun 23
|
3572 |