OdooWiki OCA HUB

Product Category Active

product_category_active folder_open OCA/product-attribute open_in_new
Product License: AGPL-3

This module allows you to archive product categories.

auto_awesome What this module does

AI-generated from the code · Odoo 20.0

Adds an archive option to product categories, so you can hide categories you no longer use without deleting them. Odoo blocks archiving a category if any product (including in its child categories) is still linked to it.

This module lets you archive product categories instead of deleting them. An archive toggle appears in the product category list, and archived categories are shown with a red "Archived" ribbon on their form.

Where it appears in Odoo: - In the product category list you get a new toggle column to archive or unarchive a category directly, and archived rows are highlighted. - On the category form, an "Archived" ribbon is displayed when the category is archived. - In the category search filters you get two new options: "Archived" and "Archived or Active", so you can find hidden categories.

Business rules and automatic behaviour: - A category cannot be archived if it, or any of its child categories, still has at least one product linked to it. In that case Odoo shows an error and refuses the change. - The check looks at all products, including archived ones, so you must move or remove those products first.

It only touches the product.category model and its existing screens; no new menus are added.

Depends on

product
Models and fields (1)
  • product.category · extends an existing modelactive

Text generated by AI (DeepSeek) from reading the Odoo 20.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: 9 confirmed, 0 with no information of 9 versions.

Sources · Odoo 19.0

Confirmed on 2026-11-03 in branch 19.0 of OCA/product-attribute.

terminal Installation and usage

OCA documentation · Odoo 20.0

To use this module, you need to:

  • Go to Inventory \> Configuration \> Products \> Product categories.
  • Select a product category or create a new one.
  • Click on the smart button Archive (this action will set active field to False).

Note: If there are products in the category to be archived or any of its children categories, an error will be raised and it won't be archived.

Note 2: Children category are not archived/unarchived when the parent category does.

No verified information in OCA: Installation, Configuration.

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.