OdooWiki OCA HUB

Product Categories - Company Favorites

product_category_company_favorite folder_open OCA/multi-company open_in_new
Product License: AGPL-3

This module is usefull in a multi-company context if

  • the companies doesn't have to use all the same categories
  • if you apply companies to your products.

Without that module, when creating products, end user can select categories that don't make sense for the current company. With that module, categories manager can set for each company, which category will be displayed, reducing configuration error. (and so accounting error if accounts are set at the category level.)

You could be interested by concurrent module named product_category_company, (same repository), that propose similar features but with alternative implementation.

Note

  • When creating new root category:
  • it is favorite for all the other company if it is favorite in the current context.
  • it is not favorite for all the other company if it is not favorite in the current context.
  • When creating new child category:
  • the category will inherit the configuration of the parent category in each company.
  • when creating a new company:
  • all the existing categories are favorite in the new created company.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets each company mark product categories as favorites, so only relevant categories appear when picking a category on a product. This reduces mistakes in multi-company setups where companies should not share all categories.

In a multi-company database, this module adds a Favorite flag on product categories that is stored separately for each company. Users can tick or untick this flag on the category form, and the category list shows a star icon for favorites.

  • On the product category form, a Favorite checkbox appears next to the parent category.
  • In the category list, favorites are shown with a star and highlighted in bold.
  • A Favorites filter is added to the category search, so users can quickly list only favorite categories.

Business rules are applied automatically:

  • When a user picks a parent category on a category form, the Favorite value is copied from the parent.
  • When a new category is created, its Favorite value is copied from its parent for every other company; for root categories, the value from the current company is applied to all other companies.
  • When a category is marked or unmarked as favorite, all its child categories are updated the same way.
  • When a new company is created, all its root product categories are automatically marked as favorite.
  • When the module is installed, existing companies get their root categories marked as favorite.

Only favorite categories are proposed in category drop-down lists such as the one on the product form, which helps avoid selecting categories that do not make sense for the current company.

Depends on

product
Models and fields (2)
  • res.company · extends an existing model
  • product.category · extends an existing modelis_favorite (Favorite)

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

Sources · Odoo 16.0

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

terminal Installation and usage

OCA documentation · Odoo 16.0
  • Select a company you want to configure
  • Go to "Inventory" > "Configuration" > "Product Categories"
  • Uncheck categories you don't want to use for the current company.
  • Go in "Inventory" > "Master Data" > "Products"
  • Create a new product

End user doesn't have access to the category "All / Consumable" that is not favorite in the current company.

No verified information in OCA: Installation.

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.