Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
4498 Lượt xem

Hello. I'm new at Odoo and I would like to know if it is possible to achieve what I asked.

What I'm planning to do is to insert python logic inside a custom module (which I can build with code) in order to connect to a public webservice. I feel like this could be possible since that is the way Google Calendar works on Odoo am I right?

My module would basically have an object with a tree view with some invoices (I will extend a boolean field on invoices and depending on this the invoice will be shown on this module's object view). Then I will select an invoice, acces to its form view and through a custom buttom with a custom action, send data from that invoice to my webservice. 

I am thinking about using Requests or Zeep as libraries for connecting and sending data to the external public webservice.  I will be sending data from Odoo to this webservice. What I would like to know also is how do I make the script run if the libraries I'll use are not on my Odoo server. Would it still work? Sorry if this last piece of info/question is irrelevant.

Any documentation or old post about this topic would be helpful too.

Thanks in advance.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Jean,

Yes, that is possible. You can pass any type of data to third party using web-services. Using python you can call any type of web-service. There are many libraries that will help you to call web-service.

You will have to install the library which you will use on your server where Odoo is running.

Let me know if you have any further question. Feel free to ask.

Sudhir Arya
ERP Harbor Consulting Services
Skype:sudhir@erpharbor.com
Website: http://www.erpharbor.com
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Jean,

Yes it is possible by using web services and you can easily transfer data to any third party app.

There are plenty of python lib available which you can easily use.

Thanks.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Yes, you can achieve this wither with python or javascript, with Odoo everything is possible  :(

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
8
thg 11 24
30736
2
thg 12 22
4344
0
thg 5 21
2174
2
thg 4 20
3619
0
thg 4 22
2615