Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.46 MB
Module directory on disk
Code analysis 0 migration notes 3 models 10 views 0 HTTP endpoints

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

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 10

XML IDNameModelTypeStatus
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

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • uom_reference_id Many2one → product.uom.reference
    domain="[('uom_id', '=', uom_id)]" args: 'product.uom.reference'
Public methods (0)

No public methods.

New fields (4)
  • name Char
    required=True translate=True
  • ratio Float
    required=True
  • uom_id Many2one → uom.uom
    required=True args: 'uom.uom'
  • uom_reference_id Many2one → uom.uom
    required=True args: 'uom.uom'
Public methods (0)

No public methods.

Loading…