Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
4314 มุมมอง

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
8
พ.ย. 24
30246
Product name to One2Many + แก้ไขแล้ว
2
ธ.ค. 22
4249
0
พ.ค. 21
1996
2
เม.ย. 20
3429
0
เม.ย. 22
2505