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

AttributeError: 'NoneType' object has no attribute '_table'

Iscriviti

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

La domanda è stata contrassegnata
error_table
8 Risposte
34715 Visualizzazioni
Avatar
CHABANI

Hi please tell me how to fix this error:

Server Traceback (most recent call last): File "/home/erp_user/openerp/production/server/openerp/addons/web/session.py", line 89, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/home/erp_user/openerp/production/server/openerp/netsvc.py", line 292, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/home/erp_user/openerp/production/server/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, params) File "/home/erp_user/openerp/production/server/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, *kw or {}) File "/home/erp_user/openerp/production/server/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, args, *kwargs) File "/home/erp_user/openerp/production/server/openerp/osv/osv.py", line 197, in execute res = self.execute_cr(cr, uid, obj, method, args, *kw) File "/home/erp_user/openerp/production/server/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, args, *kw) File "/home/erp_user/openerp/production/server/openerp/addons/base/module/module.py", line 495, in button_immediate_uninstall return self._button_immediate_function(cr, uid, ids, self.button_uninstall, context=context) File "/home/erp_user/openerp/production/server/openerp/addons/base/module/module.py", line 475, in _button_immediate_function _, pool = pooler.restart_pool(cr.dbname, update_module=True) File "/home/erp_user/openerp/production/server/openerp/pooler.py", line 39, in restart_pool registry = RegistryManager.new(db_name, force_demo, status, update_module) File "/home/erp_user/openerp/production/server/openerp/modules/registry.py", line 218, in new openerp.modules.load_modules(registry.db, force_demo, status, update_module) File "/home/erp_user/openerp/production/server/openerp/modules/loading.py", line 413, in load_modules pool.get('ir.module.module').module_uninstall(cr, SUPERUSER_ID, mod_ids_to_remove) File "/home/erp_user/openerp/production/server/openerp/addons/base/module/module.py", line 439, in module_uninstall ir_model_constraint._module_data_uninstall(cr, uid, constraint_ids, context) File "/home/erp_user/openerp/production/server/openerp/addons/base/ir/ir_model.py", line 532, in _module_data_uninstall WHERE cs.contype=%s and cs.conname=%s and cl.relname=%s""", ('f', name, model_obj._table)) AttributeError: 'NoneType' object has no attribute '_table'

3
Avatar
Abbandona
Avatar
Chidozie Kingsley Okonkwo
Risposta migliore

I had this error on one of my module, where a many2many field was linking to a model, whose module was not added on the depends list in the __openerp__.py. So try to check your custom module to see if there is any relationship between your custom module and other module. Then add the module to the "depends" list in the __openerp__.py file. 

2
Avatar
Abbandona
Avatar
Abhishek
Risposta migliore

IS this error came while you upgrading any module ....??

If yes then there may be various chance for this error but meanwhile open PGAdmin and run this command and then proceed ....

Update ir_module_module set state='installed' where state='to upgrade'

2
Avatar
Abbandona
Avatar
CHABANI
Autore Risposta migliore

thank you for your answer, this error message comes especially if I try to uninstall my module, how can i solve this problem?

1
Avatar
Abbandona
Avatar
Marko
Risposta migliore

I had the same problem with addons-hr-ng modules. Some time in the past we installed these modules directly in /openerp/openerp/addons.

Later on we moved these addons in an external directory called /opt/addons/addons-hr-ng. Since then hr modules didn't work, could not install/uninstall and the above error occured. We even tried moving the addons-hr-ng directory in /openerp/openerp/addons but still same errors. 

Only moving back the modules from /opt/addons/addons-hr-ng/<modules> into /openerp/openerp/addons resolved the issue.

Seems there is no way of moving the modules location once installed.

1
Avatar
Abbandona
Avatar
yassine chaouche
Risposta migliore

Upgrading base module will get rid of old references in the database and may help in uninstalling your module.

If that still doesn't work, you can try this standalone script at your own risk. Make a backup http://ychaouche.wikispot.org/OpenERPModuleRemover

1
Avatar
Abbandona
Julio Cesar Rodriguez

The link to the script you recomend is dead

yassine chaouche

Luckily, the [Internet Archive](https://web.archive.org/web/20150705113707/http://ychaouche.wikispot.org/OpenERPModuleRemover) got my back

Avatar
fadhel salhi
Risposta migliore
0
Avatar
Abbandona
Avatar
codefans
Risposta migliore

set uninstall to you module. then reinstall will be ok 

Update ir_module_module set state='uninstall' where state='to upgrade'

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à
?"Your country might be blocked by our hosting provider" error when I create new website
error
Avatar
0
nov 25
592
Payment Page Return Error with Razorpay on Mobile Devices
error
Avatar
0
set 25
1304
Error after installing "purchase" app in Odoo version 18
error
Avatar
Avatar
1
dic 24
7201
error schema for TourStep Error
error
Avatar
0
nov 24
2657
Can't modify manifest version of custom module [Odoo.sh]
error
Avatar
Avatar
Avatar
2
lug 24
5471
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