OdooWiki OCA HUB

Company Active

res_company_active folder_open OCA/multi-company open_in_new
Tools License: AGPL-3

This module adds the possibility to archive companies by UI via the common "Action \> Archive" button.

Note

A control is realized, to check if the disabled company is the current company for active users.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets you archive companies from the company form, with a safety check that blocks archiving a company that is still the current company of active users.

This module makes the standard Archive action available on companies. On the company form you now see the usual Archived ribbon when a company is archived, and you can archive or unarchive a company like any other record.

Two safety rules are enforced automatically when you try to archive a company:

  • You cannot archive the company you are currently working in; Odoo shows an error saying the current company cannot be disabled.
  • You cannot archive a company that is still set as the current company of other active users. The error message lists those users by name and asks you to change their company or disable them first.

These checks run whenever the active flag on a company changes, so they also apply if the change is made outside the form. The module only touches the company model (res.company) and adds the archive ribbon to the existing company form view; it does not add new menus or reports. It depends only on the base module and is intended for databases where several companies are managed.

Depends on

base
Models and fields (1)
  • res.company · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 5 confirmed, 4 with no information of 9 versions.

Sources · Odoo 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/multi-company.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.