跳至內容
選單
此問題已被標幟
4 回覆
7100 瀏覽次數

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!

頭像
捨棄
作者

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

最佳答案

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

頭像
捨棄
最佳答案

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?

頭像
捨棄
作者 最佳答案

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

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
2月 17
3103
0
8月 16
5840
8
4月 23
38597
0
4月 17
5326
1
8月 25
348