On 02 Jan 12:57, Luis Martinez wrote:
> Im tryting to test the printer in the sale_pos module. I have the printer 
> connected directly to the tryton server and Im running the tryton client 
> also in the same server.
> 
> The error shows as follow:
> 
> Traceback (most recent call last):
>   File "/trytond/protocols/jsonrpc.
> py", line 123, in _marshaled_dispatch
>     response['result'] = dispatch_method(method, params)
>   File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
>     res = dispatch(*args)
>   File "/trytond/protocols/dispatcher.py", line 158, in dispatch
>     result = rpc.result(meth(*args, **kwargs))
>   File "/trytond/model/modelview.py", line 506, in wrapper
>     return func(cls, *args, **kwargs)
>   File "/trytond/modules/sale_pos/device.py", line 86, in test_printer
>     receipt.test_printer(device)
>   File "/trytond/modules/sale_pos/reporting.py", line 64, in p
>     self._open_device(device)
> NameError: global name 'device' is not defined
> 
> In the Configuration -> POS Devices menu I setup the printer port ast: 
> /dev/usb/lp0
> I print from the command prompt directly with ls > /dev/usb/lp0 and it 
> works fine.
> 
> I'll appreciate your help!

You should probably report the issue to the bugtracker of the sale_pos
module.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgpjnzRcoxCix.pgp
Description: PGP signature

Reply via email to