TIP: You can type at any time to perform a new search.

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:
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 info_outline

Views touched (3)
XML IDNameModelTypeStatus
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)
  • active Boolean
    default=True help='Uncheck the active field to disable a unit of measure without deleting it.' args: 'Active'
  • factor Float
    compute='_compute_factor' digits=0 recursive=True store=True args: 'Absolute Quantity'
  • name Char
    required=True translate=True args: 'Unit Name'
  • parent_path Char
    index=True
  • related_uom_ids One2many → uom.uom
    args: 'uom.uom', 'relative_uom_id', 'Related UoMs'
  • relative_factor Float
    default=1.0 digits=0 help='How much bigger or smaller this unit is compared to the reference UoM for this unit' required=True args: 'Contains'
  • relative_uom_id Many2one → uom.uom
    index='btree_not_null' ondelete='cascade' args: 'uom.uom', 'Reference Unit'
  • sequence Integer
    compute='_compute_sequence' precompute=True readonly=False store=True
Public methods (3)
  • 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) -> bool
    Check if the value is zero after rounding with the 'Product Unit' precision
  • round(self, value: float, rounding_method: RoundingMethod='HALF-UP') -> float
    Round the value using the 'Product Unit' precision

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…