2
# -*- encoding: utf-8 -*-
3
###########################################################################
4
# Module Writen to OpenERP, Open Source Management Solution
5
# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>).
7
###############Credits######################################################
8
# Coded by: humberto@openerp.com.ve
9
# angélicaisabelb@gmail.com
10
# example of pycups-1.9.52
11
# Planified by: Nhomar Hernande
12
# Finance by: Helados Gilda, C.A. http://heladosgilda.com.ve
13
# Audited by: Humberto Arocha humberto@openerp.com.ve
14
#############################################################################
15
# This program is free software: you can redistribute it and/or modify
16
# it under the terms of the GNU General Public License as published by
17
# the Free Software Foundation, either version 3 of the License, or
18
# (at your option) any later version.
20
# This program is distributed in the hope that it will be useful,
21
# but WITHOUT ANY WARRANTY; without even the implied warranty of
22
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
# GNU General Public License for more details.
25
# You should have received a copy of the GNU General Public License
26
# along with this program. If not, see <http://www.gnu.org/licenses/>.
27
##############################################################################
31
'name': 'python2lpr' ,
33
'author': 'OpenERP Venezuela' ,
34
'category': 'General' ,
37
Configuraciones Previas:
38
1- Instalar pycups: # aptitude install python-cups
39
2- # apt-get install system-config-printer
40
3- Acceder al archivo de configuracion de cups (/etc/cups/cupsd.conf) y modificar:
41
- En la Seccion: Only listen for connections from the local machine.
43
Listen /var/run/cups/cups.sock
44
- En la Seccion: Default authentication type, when authentication is required...
46
DefaultEncryptionRe quired
47
DefaultEncryption Never
48
- En la Seccion: Default authentication type, when authentication is required...
50
DefaultEncryptionRe quired
51
DefaultEncryption Never
52
- En la Seccion: Restrict access to the server...
56
- En la Seccion: Restrict access to the admin pages...
60
- En la Seccion: Restrict access to configuration files...
61
<Location /admin/conf>
66
4- Reiniciar cups: # /etc/init.d/cups restart
67
5- Instalar: # aptitude install lpr
68
6- Istalar: # apt-get install cups cups-driver-gutenprint gutenprint-locales foomatic-db foomatic-db-gutenprint foomatic-db-engine foomatic-filters foomatic-db-hpijs cups-bsd foo2zjs
69
7- PROCESO DE AÑADIR LA IMPRESORA
70
7.1- Acceder a Common UNIX Printing System (asistente de impresoras Web): http://localhost:631/ si es, desde una maquina virtual con: http://192.168.*.*
71
7.2- Anadir la Impresora que se desea administrar
72
8- Instalar el modulo python2lpr
73
9- En el Servidor en la direccion: server/bin/report/report_sxw.py Editar este archivo por los comandos del archivo lpr_code.txt:
74
INTRO CODE 1 --> despues del import common (parte superior)
75
INTRO CODE 2 --> en la clase report_sxw en el metodo create despues de la setencia: if not fnct_ret: return (False,False)
76
10- Reiniciar el Servidor de OpenERP
78
"website": "http://www.openerp.com/" ,
82
"python2lpr_view.xml" ,