Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
412 Lượt xem

we are in ODOO.Sh environment.

Management decided to complete closing of a company and need to remove this company from ODOO

We have  transaction in Account, expenses, approval ,inventory and purchase



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

When removing a company from an Odoo.sh environment, especially one with historical transactions (accounting, inventory, purchases, etc.), you must proceed carefully. Odoo is built around multi-company integrity, and direct deletion of a company with live or historical data is not supported or safe without breaking dependencies or corrupting records.


* You cannot delete a company directly from the database if it has existing transactional records.

* Attempting to do so will raise errors due to foreign key constraints and business logic.


The most recommended solution is to deactivate/archive the company.


If You Absolutely Must Delete All Records:

Only do this if you understand the risks.


This requires:

      - Removing all dependent records in the right order (accounting entries → invoices → orders → stock moves → etc.)

      - Often done with custom scripts in development or staging first

      - Best handled by an Odoo expert or partner (or Odoo Support if you're on Enterprise)


Odoo has thousands of interlinked tables. Deleting a company improperly can leave orphan records and break core apps like reporting, approvals, inventory, etc.


Hope it helps

Ảnh đại diện
Huỷ bỏ