Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1205 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 15
8354
1
ago 22
4921
3
set 17
5404
1
giu 25
909
5
set 21
9229