Odoo Help

0

[Expert Tips requires]Can I import libs in Server Action ?

By
Zahin
on 8/29/14, 9:21 AM 1,010 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 !!!

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.)

Hertford Developments Limited, Kurt Haselwimmer
on 9/1/14, 4:28 AM
0

odoo.ma by IBS Group

--odoo.ma by IBS Group--
1312
| 4 5 8
Tétouan, Morocco
--odoo.ma by IBS Group--

For more informations about IBS, please visit our website at www.ibs-na.com.

For a specific questions, collaboration or help, please send us an email to support@ibs-na.com

odoo.ma by IBS Group
On 8/29/14, 10:35 AM

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

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

Zahin
on 8/29/14, 10:36 AM

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

Zahin
on 8/29/14, 10:37 AM

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

Zahin
on 8/29/14, 10:38 AM

Shall I use json rpc call !!!

Zahin
on 8/30/14, 5:06 AM

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.

odoo.ma by IBS Group
on 8/30/14, 8:17 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 8/29/14, 9:21 AM
Seen: 1010 times
Last updated: 3/16/15, 8:10 AM