Edi Santoso
Odoo and Python Developer
drink a tea to enjoying the life

fix odoo Model is declared but cannot be loaded! (Perhaps a module was partially removed or renamed)

How to fix odoo Model  is declared but cannot be loaded! (Perhaps a module was partially removed or renamed)

Likely you have data in other tables that needs to be cleared first. Try ir_model_data
SELECT * FROM ir_model_data WHERE model = 'your.model';
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.