Question
After upgrading my Odoo instance, a custom module isn’t installing, and I get dependency errors. How do I resolve this?
Problem
When upgrading Odoo (e.g., from 14 to 16), custom modules can fail due to missing dependencies, API changes, or renamed fields.
Solution
- Check
__manifest__.py
for outdated dependencies. - Run
odoo-bin -u all --stop-after-init
to force module updates. - Inspect logs for missing fields and update your migration scripts.
- If necessary, remove orphaned database records manually:
sql
DELETE FROM ir_model_data WHERE module = 'your_module' AND name = 'old_field';
- Finally, restart Odoo and reinstall the module.
Build secure, scalable, and feature-rich platforms tailored to your business needs. From custom module development to multi-company management, get end-to-end solutions for your Odoo implementation project. Let’s streamline your business operations and drive efficiency with Odoo Implementation Services.
Top comments (0)