Hello everyone,
I’m currently working with Odoo 18.0 and needed to remove the MRP-related functionality from my instance. To do this, I directly deleted the mrp module and all modules that depend on it from the addons directory. Specifically, I removed these modules:
["sale_mrp", "sale_mrp_margin", "project_mrp_stock_landed_costs", "project_mrp_account", "project_mrp_sale", "pos_mrp", "project_mrp", "purchase_mrp", "mrp", "mrp_account", "mrp_landed_costs", "mrp_product_expiry", "mrp_repair", "mrp_subcontracting", "mrp_subcontracting_account", "mrp_subcontracting_dropshipping", "mrp_subcontracting_landed_costs", "mrp_subcontracting_purchase", "mrp_subcontracting_repair"]
I double-checked that no other modules depend on these. After removing them, I rebuilt my environment and tried to create a new database. However, when starting Odoo and initializing the database, I’m getting the following error:
psycopg2.errors.UndefinedTable: relation "ir_model" does not exist
LINE 1: SELECT *, name->>'en_US' AS name FROM ir_model WHERE state =...
My question is: What steps or best practices should I follow to properly remove these modules while ensuring that Odoo can still initialize the database and run without errors?
Any guidance would be greatly appreciated. Thank you!