OdooWiki OCA HUB

Product - Domain on Purchase UoM

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

By default in Odoo, on the product.template and product.product form views, the list of the available Purchase UoM is not filtered. (uom_po_id field)

So the UI is proposing all the uoms, even those that are not consistent with the selected main UoM. (defined in the uom_id field.)

This module extends the functionallity of product module, adding a domain on this field.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

When you set a product's purchase unit of measure, Odoo now only offers units that belong to the same unit-of-measure category as the product's main unit. This prevents picking an inconsistent purchase unit.

This module changes the product form so that the Purchase UoM field is filtered by the product's main unit of measure.

  • On the product template form (the same screen where you set the main Unit of Measure), the Purchase UoM dropdown now only lists units from the same unit-of-measure category as the main unit. For example, if the main unit is a weight unit, only other weight units are proposed.
  • A hidden helper field, uom_category_id, is added to the form and is automatically taken from the main unit's category; it is not shown to users.
  • The rule is applied on product.template, so it also affects the product variants derived from it.
  • No new menus, buttons, reports, emails or scheduled actions are added; the change is limited to the selection available in the Purchase UoM field.

This is useful when you buy a product in a different unit than you sell or store it, but you still want the purchase unit to be compatible with the main unit. It reduces data-entry mistakes without changing any existing records.

Depends on

product
Models and fields (1)
  • product.template · extends an existing modeluom_po_id, uom_category_id (UoM Category)

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/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.