Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

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

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
pythonxmlmany2one__openerp__.py
7129 Vizualizări
Imagine profil
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
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
What should the view inherit from?
python xml view many2one
Imagine profil
0
mar. 15
5177
OpenERP 7 many2one with current month filter
filter python xml many2one
Imagine profil
Imagine profil
2
mar. 15
30245
How to hide view.xml fields group in Account module with attr
python xml
Imagine profil
Imagine profil
Imagine profil
2
dec. 23
13946
how to remove first empty element from fields.selection Rezolvat
python xml
Imagine profil
Imagine profil
Imagine profil
3
iul. 22
24357
Related selection field or parent child drop down menus in odoo 14 Rezolvat
python xml many2one related domain_filter
Imagine profil
Imagine profil
Imagine profil
2
iun. 22
4506
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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