Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1201 Zobrazení

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!


Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 15
8354
1
srp 22
4911
3
zář 17
5400
1
čvn 25
904
5
zář 21
9226