Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Real Estate
    • Real Estate Agency
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consulting
    • Accounting Firm
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Solar Energy Systems
    • Shoe Maker
    • Serveis de neteja
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

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

Subscriure's

Get notified when there's activity on this post

This question has been flagged
pythonxmlmany2one__openerp__.py
7116 Vistes
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
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
What should the view inherit from?
python xml view many2one
Avatar
0
de març 15
5145
OpenERP 7 many2one with current month filter
filter python xml many2one
Avatar
Avatar
2
de març 15
30233
How to hide view.xml fields group in Account module with attr
python xml
Avatar
Avatar
Avatar
2
de des. 23
13925
how to remove first empty element from fields.selection Solved
python xml
Avatar
Avatar
Avatar
3
de jul. 22
24345
Related selection field or parent child drop down menus in odoo 14 Solved
python xml many2one related domain_filter
Avatar
Avatar
Avatar
2
de juny 22
4497
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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