OdooWiki OCA HUB

Product Category Hr Department Link

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

This module links product categories with hr departments and is used to filter products on the sales order line or purchase order line based on the department of the user.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a Department field to product categories so each category can be linked to an HR department. This link can then be used to filter products by the user's department on sales and purchase order lines.

This module adds a single new field to product categories: a Department field that lets you associate a product category with an HR department.

Where it appears: - On the product category form, a new Department field is shown right after the Parent Category field. You can open it from the Product Categories screen (Configuration area of Inventory/Sales/Purchase) and pick a department from the list.

What it changes: - The field is optional, so you can leave it empty on any category. - It stores a link to an existing HR department record; departments themselves are not modified. - No automatic checks, computations, default values, emails or scheduled jobs are added by this module.

The module only creates the link between product categories and departments. The filtering of products on sales order lines or purchase order lines based on the user's department is not implemented in this code; it is only the intended use of the link. If you need that filtering behaviour, it must come from another module or customisation.

Models touched: product.category (extended) and hr.department (referenced).

Depends on

producthr
Models and fields (1)
  • product.category · extends an existing modelhr_department_id (Department)

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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 16.0

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

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.