콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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!


아바타
취소
베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
1
3월 15
8199
1
8월 22
4751
3
9월 17
5232
1
6월 25
575
5
9월 21
9046