Product uom reference
product_uom_reference · OCA/product-attribute
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module shows a unit price (price per reference unit of measure) on product labels, so customers can compare products sold in different package sizes, as required by EU Directive 98/6/EC on consumer protection in the indication of the prices of products.
The reference unit of measure is chosen freely and may belong to a different category than the product's unit of measure: a product sold per Units can show its price per kg or per L. The ratio is the quantity of the reference unit contained in one unit of the product (its net content), so it depends on the product, not on the conversion factors of the units of measure.
Example, two products sold per Units:
- Tomato paste 500 g: $2.50 per Units, ratio 0.5 → $5.00 per kg
- Tomato paste 1 kg: $4.50 per Units, ratio 1 → $4.50 per kg
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 10
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_template_only_form_view |
product.template.inherit.product_uom_reference_ratio | product.template | form | Inherits product.product_template_only_form_view |
product_uom_reference.label_product_product_view |
product_uom_reference.label_product_product_view | ir.ui.view | qweb | Inherits stock.label_product_product_view |
product_uom_reference.price_uom_reference |
product_uom_reference.price_uom_reference | ir.ui.view | qweb | New |
product_uom_reference.report_productlabel |
product_uom_reference.report_productlabel | ir.ui.view | qweb | Inherits product.report_productlabel |
product_uom_reference.report_simple_label2x7 |
product_uom_reference.report_simple_label2x7 | ir.ui.view | qweb | Inherits product.report_simple_label2x7 |
product_uom_reference.report_simple_label4x12 |
product_uom_reference.report_simple_label4x12 | ir.ui.view | qweb | Inherits product.report_simple_label4x12 |
product_uom_reference.report_simple_label4x7 |
product_uom_reference.report_simple_label4x7 | ir.ui.view | qweb | Inherits product.report_simple_label4x7 |
product_uom_reference.report_simple_label_dymo |
product_uom_reference.report_simple_label_dymo | ir.ui.view | qweb | Inherits product.report_simple_label_dymo |
product_uom_reference.show_uom |
product_uom_reference.show_uom | ir.ui.view | qweb | New |
product_uom_reference_list_view |
product.uom.reference.list | product.uom.reference | list | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
No new fields.
Public methods (0)No public methods.
-
uom_reference_idMany2one → product.uom.referencedomain="[('uom_id', '=', uom_id)]" args: 'product.uom.reference'
No public methods.
-
nameCharrequired=Truetranslate=True -
ratioFloatrequired=True -
uom_idMany2one → uom.uomrequired=True args: 'uom.uom' -
uom_reference_idMany2one → uom.uomrequired=True args: 'uom.uom'
No public methods.
Loading…