Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Información
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Food & Hospitality
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Guest House
    • Distribuidor de bebidas
    • Hotel
    Real Estate
    • Real Estate Agency
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consulting
    • Accounting Firm
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Trades
    • Handyman
    • Hardware y asistencia informática
    • Solar Energy Systems
    • Zapatero
    • Servicios de limpieza
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

openerp 7 .netsvc: Unable to use a closed cursor.

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
pythonxmlmany2one__openerp__.py
7101 Vistas
Avatar
priyankahdp

I need to add hr.employee many2one field for res.users model class.so i added the below lines.

    'employee': fields.boolean('Is Employee'),
    'employee_id' : fields.many2one('hr.employee', 'Employee'),

when i entered first line its worked perfectly and not gives a error. but when i added the second many2one filed then openerp gives a error like below please help me to sort out this issue

thanks..

    2013-07-02 15:40:05,775 14741 WARNING ? openerp.sql_db: Cursor not closed explicitly
Please enable sql debugging to trace the caller.
2013-07-02 15:40:05,779 14741 INFO ? werkzeug: 127.0.0.1 - - [02/Jul/2013 15:40:05] "POST /web/database/create HTTP/1.1" 200 -
2013-07-02 15:40:06,049 14741 INFO ? werkzeug: 127.0.0.1 - - [02/Jul/2013 15:40:06] "GET /web/static/src/img/warning.png HTTP/1.1" 304 -
2013-07-02 15:40:06,071 14741 INFO ? werkzeug: 127.0.0.1 - - [02/Jul/2013 15:40:06] "GET /web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_glass_75_ffffff_1x400.png HTTP/1.1" 304 -
2013-07-02 15:40:11,160 14741 INFO ? openerp.service.web_services: Create database `hrmgtn`.
2013-07-02 15:40:11,161 14741 WARNING ? openerp.sql_db: ConnectionPool(used=0/count=1/max=64): Free leaked connection to 'user=priyan dbname=postgres'
2013-07-02 15:40:15,720 14741 INFO hrmgtn openerp.modules.loading: loading 1 modules...
2013-07-02 15:40:15,754 14741 INFO hrmgtn openerp.modules.module: module base: creating or updating database tables
2013-07-02 15:40:18,587 14741 INFO hrmgtn openerp.osv.orm: Computing parent left and right for table ir_ui_menu...
2013-07-02 15:40:30,708 14741 INFO hrmgtn openerp.osv.orm: Computing parent left and right for table res_partner_category...
2013-07-02 15:40:34,638 14741 ERROR hrmgtn openerp.service.web_services: CREATE DATABASE failed:
Traceback (most recent call last):
  File "/home/priyan/Softwares/openerp-7.0/openerp/service/web_services.py", line 76, in _initialize_db
    update_module=True)[1]
  File "/home/priyan/Softwares/openerp-7.0/openerp/pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module)
  File "/home/priyan/Softwares/openerp-7.0/openerp/modules/registry.py", line 218, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/home/priyan/Softwares/openerp-7.0/openerp/modules/loading.py", line 304, in load_modules
    loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=update_module, report=report)
  File "/home/priyan/Softwares/openerp-7.0/openerp/modules/loading.py", line 168, in load_module_graph
    init_module_models(cr, package.name, models)
  File "/home/priyan/Softwares/openerp-7.0/openerp/modules/module.py", line 374, in init_module_models
    result = obj._auto_init(cr, {'module': module_name})
  File "/home/priyan/Softwares/openerp-7.0/openerp/osv/orm.py", line 3182, in _auto_init
    raise except_orm('Programming Error', 'There is no reference available for %s' % (f._obj,))
except_orm: ('Programming Error', 'There is no reference available for hr.employee')
2013-07-02 15:40:34,642 14741 ERROR hrmgtn openerp.netsvc: Unable to use a closed cursor.
Traceback (most recent call last):
  File "/home/priyan/Softwares/openerp-7.0/openerp/netsvc.py", line 293, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/priyan/Softwares/openerp-7.0/openerp/service/web_services.py", line 122, in dispatch
    return fn(*params)
  File "/home/priyan/Softwares/openerp-7.0/openerp/service/web_services.py", line 168, in exp_create_database
    _initialize_db(self, id, db_name, demo, lang, user_password)
  File "/home/priyan/Softwares/openerp-7.0/openerp/service/web_services.py", line 98, in _initialize_db
    cr.close()
  File "/home/priyan/Softwares/openerp-7.0/openerp/sql_db.py", line 160, in wrapper
    raise psycopg2.OperationalError(msg)
OperationalError: Unable to use a closed cursor.
2013-07-02 15:40:34,646 14741 INFO hrmgtn werkzeug: 127.0.0.1 - - [02/Jul/2013 15:40:34] "POST /web/database/create HTTP/1.1" 200 -
0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
What should the view inherit from?
python xml view many2one
Avatar
0
mar 15
5137
OpenERP 7 many2one with current month filter
filter python xml many2one
Avatar
Avatar
2
mar 15
30227
How to hide view.xml fields group in Account module with attr
python xml
Avatar
Avatar
Avatar
2
dic 23
13912
how to remove first empty element from fields.selection Resuelto
python xml
Avatar
Avatar
Avatar
3
jul 22
24329
Related selection field or parent child drop down menus in odoo 14 Resuelto
python xml many2one related domain_filter
Avatar
Avatar
Avatar
2
jun 22
4470
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now