Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
During development I have on occasion decided to remove a model from an addon for a variety of reasons. When I restart my server and update my addon I see a warning.
Model addon_name.model_name is declared but cannot be loaded!
The above is a shortened version of the warning but those of you who have seen this know what I am referring to.
The cause as far as I know is a reference to the removed model in the ir_model table which can be easily removed by executing the following sql command.
delete from ir_model where name='addon_name.model_name';
What is the preferred way to deprecate a model? Should some variation of the above sql be included in a migration script?
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/1/17, 9:10 AM|
|Seen: 1048 times|
|Last updated: 6/24/18, 6:16 AM|