Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

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

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
pythonxmlmany2one__openerp__.py
7329 Visualizzazioni
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
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
What should the view inherit from?
python xml view many2one
Avatar
0
mar 15
5368
OpenERP 7 many2one with current month filter
filter python xml many2one
Avatar
Avatar
2
mar 15
30374
How to hide view.xml fields group in Account module with attr
python xml
Avatar
Avatar
Avatar
2
dic 23
14313
how to remove first empty element from fields.selection Risolto
python xml
Avatar
Avatar
Avatar
3
lug 22
24721
Related selection field or parent child drop down menus in odoo 14 Risolto
python xml many2one related domain_filter
Avatar
Avatar
Avatar
2
giu 22
4658
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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