Odoo Help

Welcome!

This community 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.

0

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

By
Mohammed Khamis
on 1/22/15, 1:18 AM 511 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.

Ivan
on 1/22/15, 2:04 AM
0
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. 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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