Repository
OCA/server-tools · module folder · Try on Runboat
Module version
1.0.1
Category
Extra Tools
Folder size
0.04 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/server-tools
Last tracking update
2026-08-07 07:31:57
Authors
Odoo Community Association (OCA), LasLabs
Maintainers
Odoo Community Association (OCA), LasLabs
Committers
OCA Transbot, OCA-git-bot, oca-travis, Tom Blauwendraat, Ruben Dario Bravo
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
res_lang_form Res Lang Form - Default UoMs res.lang form Inherits base.res_lang_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (1)
  • default_uom_ids Many2many → uom.uom
    comodel_name='uom.uom' string='Default Units'
Public methods (1)
  • default_uom_by_category(self, category_name, lang=None)
    @api.model
    Return the default UoM for language for the input UoM Category. Args: category_name (str): Name of the UoM category to get the default for. lang (ResLang or str, optional): Recordset or code of the language to get the default for. Will use the current user language if omitted. Returns: ProductUom: Unit of measure representing the default, if set. Empty recordset otherwise.

Loading…