Odoo Help


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

Mohammed Khamis
on 1/22/15, 1:18 AM 774 views

Hi Every body,

When I try to upgrade or uninstall some module i find this error (AttributeError: 'NoneType' object has no attribute '_table' ) and I am do not know the source of the errore to fixed it , please if you now this error I will thankful for your help me .

thank you so much

Do you have both _inherit and _name in your model and both are same? If so, odoo will not be able to install it unless a table named like specified in _name.

Currenda Sp. z o.o., Mariusz Mizgier
on 1/22/15, 1:22 AM

This is usually caused by a database object (Primary Key, etc.) that is no longer there. I admin that tracing it is a bit tedious. Put a logging before that error is prompted so that you can see which database object cause that problem.

on 1/22/15, 2:04 AM
Erhuvwu Akpobaro
On 1/23/15, 7:28 AM

Hey what @ivan said is mostly the case , sometimes the database is just out of sync what you can try which works for me when i get that error is to restart your odoo server but this use -u all -d nameofdatabase to update the database. 

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 1/22/15, 1:18 AM
Seen: 774 times
Last updated: 3/16/15, 8:10 AM