Odoo Help

Welcome!

This community 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.

1

[POS] set up ip printer

By
zigloo
on 7/2/15, 11:07 AM 1,029 views

Hi everyone,

I try to set up a POS for a small restaurant here in Bolivia. Everything seems to work fine but I can't properly set up the kitchen printer (an IP one, ESC/POS compatible). When I check /hw_proxy/status it only list USB devices but the printer is correctly installed and works with cups.

How can I set up a network printer in the POS?

Thanks a lot guys!

0
Daniele Favara
On 1/5/16, 2:19 PM

I may be wrong , but i checked the source code of hw_escpos.


I do not see support for IP Printers.


I'm afraid you need to hack the module.

Ex:

from .. escpos.printer import Usb, Network


and to return ip printer

    def get_escpos_printer(self):

self.set_status('connected','Connected to 192.168.1.200') 

net = NetworkCustom('192.168.1.200')

return net

 



Custom Escpos class to add close

class NetworkCustom(Network):

def close(self):

self.device.close()

return net


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/2/15, 11:07 AM
Seen: 1029 times
Last updated: 1/5/16, 2:19 PM