OdooWiki OCA HUB
Uncategorised License: AGPL-3

This module allows to constraint users to have only one unit of measure per category and per quantity.

Indeed, this has been triggered by the fact users maybe identfied the wrong category or need a new one to put their particular unit of measure.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds a database rule that prevents having two active units of measure with the same conversion factor inside the same unit-of-measure category.

This module changes how units of measure can be configured in Odoo. It adds a restriction on the unit of measure records (uom.uom) so that, within the same category, you cannot keep two active units that share the same conversion factor and the same reference unit.

  • The rule only applies to active units of measure; archived ones are ignored.
  • If you try to activate or create a unit that duplicates the factor of another active unit in the same category, Odoo blocks the operation with the message: "Only one active unit of measure per factor and per category should be active."
  • The check is enforced at the database level, so it also protects against imports and other automated data loads, not only manual entry in the form.

There are no new menus, buttons, reports or scheduled actions. The change is only visible when managing units of measure, for example when creating or activating a unit in the Units of Measure configuration screen. It touches the uom.uom model and depends on the standard uom module. The goal is to avoid confusing duplicates where two units in the same category convert quantities in exactly the same way.

Depends on

uom

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: 1 confirmed, 8 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 19.0
  • Create a unit of measure with a duplicate quantity factor and category
  • An error should be raised.

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.