Skip to Content
Menu
This question has been flagged

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!


Portretas
Atmesti
Best Answer

Hi,

Directly deleting modules from the addons directory is not the correct way to remove modules in Odoo.

1. First, You have to install new addons.

2. Uninstall the Modules via Odoo UI

     Before removing modules from the addons directory, uninstall them from Odoo using the Apps       menu.

     Navigate to Apps > Locate the module > Click Uninstall.


Hope it helps

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
kov. 15
8199
1
rugp. 22
4751
3
rugs. 17
5232
1
birž. 25
574
5
rugs. 21
9046