This question has been flagged
1 Reply
4269 Views

I like to code in server action like to call to other api server.

So via odoo server action I can create record in other server via their API.

So I had require to utilize some import libs and then I can manage extra code.

Does it possible ! How to do ! Alternet solution !!!

Avatar
Discard

Did you manage to get this to work ? I am also interested in an answer to this question - and I am specifically interested in using server actions to talk to other systems API's because I wish to use Odoo-on-saas. So a follow up question is - is the solution odoo-on-saas compatible (not going to work if it requires non-native libraries that odoo do not provide.)

Best Answer

Yes you can, Odoo backend is written in Python, so any python lib/module can be imported and used within classes and methods.

Avatar
Discard
Author

Can I utilize import requests and other packages !? for jsonrpc calls !!!

Author

Can I utilize import requests and other packages !? for jsonrpc calls !!!

Author

Or I can only able to access odoo framework related code only !!!

Author

Shall I use json rpc call !!!

Yes, as I said, since Odoo's backend is written in Python, then you can import libs/modules and use them within some object method. Just give it a try.