Community mailing list archives

community@mail.odoo.com

Re: Printing on a printer next to a workstation ...

by
Akretion, Sebastien Beau
- 04/25/2015 06:28:08
Hi maybe this can interest you : https://github.com/akretion/pywebdriver
Soon ppa on launchpad for ubuntu packaging. (Note, as it's full python this can be adapted to windows, but need some work)

This is a simple flask server that can be installed on your local computor and expose an http API to all device connected to your computer (it support cups for printing). We use it for printing directly from odoo or from javascript application. The concept is simple, you just have to includ some javascript in your application to get the report (in pdf) and then to request the local proxy "pywebdriver" (post request) to print your report.

The big advantage is that you do not need to do any configuration on your network (no ip configuration....). You can also print zpl file (as cups support raw mode). We will soon go in production with 35 workstation (with an angularjs application for production), so I will be able to give your more feedback.

Hope this can help you.


2015-04-25 11:27 GMT+02:00 Peter Langenberg <peter.langenberg@bubbles-it.be>:
Thanks Openerpmaster, Gustavo an Carlos ...

I'm in favor of using OCA modules Gustavo,  I prefer them, but they have to meet the requirement of the client or we have to be able to improve them and do a pull request.

But my opinion on this is even ... future standard Odoo versions should support this ...

In every warehouse you have to print labels and work with workstations ....

Peter



Peter Langenberg
Zaakvoerder

Bezoek onze website : www.bubbles-it.be
Volg op twitter via : @mylbco
Adres : Luikstraat 67, 9160 Lokeren

“If you think a professional is expensive, wait till you try an amateur.”

Paul "Red" Adair



2015-04-24 23:17 GMT+02:00 OpenERP Master <openerpmaster@gmail.com>:
The problem the person is reporting is that the OCA module defines a printer on a per user basis, and that they want to print a report to a printer based on the persons location regardless of what user is logged into the system.

Also, I wouldnt say that anyone "must" use an OCA module.

On Fri, Apr 24, 2015 at 2:12 PM, Gustavo Marino <gamarino@numaes.com> wrote:
Hi,
I think something is not clear.

If you need a report to be sent to a local attached printer, the way to go is the normal Odoo report generation that downloads a file to User Interface, which can be printed to the local printer, wathever the printer is a laser, a pdf file or a serially attached unit.

If you want reports sent to well known printers, you must implement de OCA module that defines network printers, accessible from the server to be defined for a report. In this case the report is not sent to the user interface, but goes directly from server to network printer (or directly attached device)

Thus, I see no fundamental problem with current configuration


Gustavo Adrian Marino

 

Mobile:  +54 911 5498 2515

Email: gamarino@numaes.com

Skype: gustavo.adrian.marino

 

<img border="0" width="213" height="94" src="cid:image001.jpg@01CC37F5.99B4CD20" alt="Descripción: Numa Logo V 1-0">



2015-04-24 16:02 GMT-03:00 OpenERP Master <openerpmaster@gmail.com>:
You have a fundamental problem. Odoo needs to know the difference... Odoo needs to know what workstation you are at. How would it know this? An option we decided to go with was to override the report class and add a parameter that contains the ip address of the workstation. When the report is generated we can use this variable to send an LPR command to a printer. I do not think any such module exists that can do this request

On Fri, Apr 24, 2015 at 1:22 PM, Carlos Liébana <carlos.liebana@factorlibre.com> wrote:
Hello Peter,

Nice question. I think you can try https://github.com/ryepdx/printer_proxy_server but some tweaks will be needed to make it work.

Best regards.

2015-04-24 16:12 GMT+02:00 Peter Langenberg <peter.langenberg@bubbles-it.be>:
Hi,

With the module

https://github.com/OCA/report-print-send

It's possible to connect a printer to a user / report ...

But I need to connect a networkprinter not to a user but to a workstation ... so I can print barcode labels on the network printer next to the workstation (there are multiple workstations) indepedent of the user ...

Somebody has another module or any suggestions ?

Peter Langenberg
Zaakvoerder

Bezoek onze website : www.bubbles-it.be
Volg op twitter via : @mylbco
Adres : Luikstraat 67, 9160 Lokeren

“If you think a professional is expensive, wait till you try an amateur.”

Paul "Red" Adair


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
--------------------------

CARLOS LIÉBANA ANERO
Director | factorlibre.com
+34 635 86 67 92
@carlosliebana

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe