TIP: You can type at any time to perform a new search.
Units of measure
uom · odoo/odoo
Security findings
- Repository
- odoo/odoo · module folder
- Module version
- 0.1.0
- Category
- Sales/Sales
- Folder size
- 0.5 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- None
- Last tracking update
- 2026-09-28 18:31:23
- Authors
- Odoo S.A.
- Maintainers
- Odoo S.A.
- Committers
- Raphael Collet, Odoo Translation Bot, Christophe Matthieu, Géry Debongnie, Jorge Pinna Puissant, Xavier-Do, Victor Feyens, Anh Thao Pham (pta), Tiffany Chang (tic), Dylan Kiss (dyki), lase@odoo.com, Agustin Castro Bugallo, Mohammad Abdulmoneim (abdu), Pierre Pulinckx, Michaël Mattiello, Krzysztof Magusiak (krma), Ester Andreetto, Nisarg (nipl), Joe Wesnofske, Youssef (abyo), ELCO, Moamen(msho), Corentin Deruyck
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- analytic, barcodes_gs1_nomenclature, hr_timesheet, l10n_cl, product
- Description
This is the base module for managing Units of measure. ========================================================================
Code Analysis
Views touched (3)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
uom_uom_view_form |
uom.uom.form | uom.uom | form | New |
uom_uom_view_list |
uom.uom.list | uom.uom | list | New |
uom_uom_view_search |
uom.uom.view.search | uom.uom | search | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (2)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (8)
-
activeBooleandefault=Truehelp='Uncheck the active field to disable a unit of measure without deleting it.' args: 'Active' -
factorFloatcompute='_compute_factor'digits=0recursive=Truestore=True args: 'Absolute Quantity' -
nameCharrequired=Truetranslate=True args: 'Unit Name' -
parent_pathCharindex=True -
related_uom_idsOne2many → uom.uomargs: 'uom.uom', 'relative_uom_id', 'Related UoMs' -
relative_factorFloatdefault=1.0digits=0help='How much bigger or smaller this unit is compared to the reference UoM for this unit'required=True args: 'Contains' -
relative_uom_idMany2one → uom.uomindex='btree_not_null'ondelete='cascade' args: 'uom.uom', 'Reference Unit' -
sequenceIntegercompute='_compute_sequence'precompute=Truereadonly=Falsestore=True
-
compare(self, value1: float, value2: float) -> <expr>Compare two measures after rounding them with the 'Product Unit' precision :param value1: origin value to compare :param value2: value to compare to :return: -1, 0 or 1, if ``value1`` is lower than, equal to, or greater than ``value2``. -
is_zero(self, value: float) -> boolCheck if the value is zero after rounding with the 'Product Unit' precision -
round(self, value: float, rounding_method: RoundingMethod='HALF-UP') -> floatRound the value using the 'Product Unit' precision
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…