Odoo Warning “Perhaps a module was partially removed or renamed”

随声附和 提交于 2019-12-06 03:23:11

Likely you have data in other tables that needs to be cleared first. Try ir_model_data

DELETE FROM ir_model_data WHERE model = 'your.model';

Then you should be able to delete your table. If you have constraints related to your table you may need to identify these and remove them as well.

simahawk

You have stale model data in your db. Usually is due to a model that has been removed/renamed or a module not uninstalled properly.

A useful module to handle these situations:

https://github.com/OCA/server-tools/tree/11.0/database_cleanup

https://www.odoo.com/apps/modules/11.0/database_cleanup/

It allows you to purge stale data for models, actions, etc, whatever "orphan" record is still in your db. You'll find a control panel for database cleanup under technical section.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!