Locale - Default UoM
base_locale_uom_default · OCA/server-tools
Health
48/100
poor
-
Security25/25No findings
-
Activity6/25Last human commit 34 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.04 MB
Module directory on disk
Code analysis
1 migration note
1 model
1 view
0 HTTP endpoints
Migration considerations
ResLang— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_idsMany2many → uom.uomcomodel_name='uom.uom'string='Default Units'
-
default_uom_by_category(self, category_name, lang=None)@api.modelReturn 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…