TIP: You can type at any time to perform a new search.
Units of measure
uom · odoo/odoo
- Repository
- odoo/odoo · module folder
- Module version
- 1.0
- Category
- Sales/Sales
- Folder size
- 0.69 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- None
- Last tracking update
- 2026-08-15 22:44:21
- Authors
- Odoo S.A.
- Maintainers
- Odoo S.A.
- Committers
- Raphael Collet, Odoo Translation Bot, Julien Castiaux, Victor Feyens, Anh Thao Pham (pta), svs-odoo, Rémy Voet (ryv), Tiffany Chang (tic), Gorash, Victor Piryns (pivi), Dylan Kiss (dyki), Nguyễn Đại Dương, omra-odoo, lase@odoo.com, Julien Carion (juca), Lina (liew), Agustin Castro Bugallo, aamo-odoo, Mohammad Abdulmoneim (abdu), djameltouati, Bastien PIERRE, Michaël Mattiello, Krzysztof Magusiak (krma), Ester Andreetto, path-odoo, Joe Wesnofske, saurabh, Mathias Mathy
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- analytic, barcodes_gs1_nomenclature, fieldservice_size, hr_timesheet, l10n_cl, lims, partner_uom_mapping, product, report_qweb_field_option, sale_blanket_order, tms, uom_alias, uom_unece
- Description
This is the base module for managing Units of measure. ========================================================================
Code Analysis ⓘ
Views touched (3)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_uom_form_view |
uom.uom.form | uom.uom | form | New |
product_uom_tree_view |
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 (1)
New fields (9)
-
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' -
roundingFloatcompute='_compute_rounding' args: 'Rounding Precision' -
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…