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

I am a Java developer experienced with printing, ESC/POS, scales... I'm starting with Odoo and I liked it a lot, but I miss the direct connection to the hardware like other POS applications. I intend to develop a proxy for Windows and other operating systems with easy configuration. I have the knowledge to do it, I just need to know the communication mechanism between Odoo and hardware proxy or PosBox. Anyone know where can I find documentation or someone who knows?

Thank you very much!

Ảnh đại diện
Huỷ bỏ
Tác giả

Here you have a videotutorial https://www.youtube.com/watch?v=tLBORABL8wA

Câu trả lời hay nhất

If you already have the solution in java you could use it by sending requests to your java servlets or service in order to reuse it. It's better than call it locally with the popen call from the multi-processing package. I have done already to use an specific xml sign encryption algorithm not implemented in python and available in java to avoid errors when using workers

It's better to reuse your tools or use others tools already developed in python for that, than get it done from scratch

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

Hi

Just asking, I am looking for a PosBox proxy myself. I had a look at takepos.com but I could not find any documentation about any proxy. Is there any link or repository available?

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

Yes, I have all developed. I only need the communication with Odoo. But for this I need to understand and documentation of how Odoo send data to Hardware Server Proxy. 

Some help?

UPDATE: I released the work on takepos.com

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

Like Axel said , you' d better use what is already done

Odoo is sending data to proxy via controller ( http & json). You can get un insight on how it is done by reading source code of these odoo addons 

For generic Hardware proxy 

https://github.com/odoo/odoo/blob/10.0/addons/hw_proxy/controllers/main.py

For ESCPOS proxy

https://github.com/odoo/odoo/blob/10.0/addons/hw_escpos/controllers/main.py

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 17
3131
0
thg 8 16
5862
8
thg 4 23
38597
0
thg 4 17
5353
1
thg 8 25
421