Skip to content
Health
62/100
fair
  • Security10/25
    1 grave, 0 minor
  • Activity25/25
    Last human commit 5 months ago
  • Required by15/25
    1 module depends on it
  • Maturity12/25
    In 2 Odoo series since 14.0

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

Security findings
Grave / minor (static analysis)
Required by
1
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.07 MB
Module directory on disk
Code analysis 0 migration notes 6 models 3 views 0 HTTP endpoints

Description

This module connects Odoo with the EPREL API to fetch energy labels and fiches for products that have a model identifier and an EPREL product category. It retrieves the EPREL registration number and builds URLs.

Dependencies

Odoo dependencies
odoo/odoo:
- web
- bus
- uom
Python dependencies
None
System dependencies
None
Required by
website_sale_product_eprel

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 3

XML IDNameModelTypeStatus
res_config_settings_view_form res.config.settings.eprel.api res.config.settings form Inherits base.res_config_settings_view_form
view_product_category_form_eprel product.category.form.eprel product.category form Inherits product.product_category_form_view
view_product_template_form_eprel product.template.form.eprel product.template form Inherits product.product_template_form_view

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 6

New fields (1)
  • eprel_category_id Many2one → product.category.eprel
    comodel_name='product.category.eprel' string='EPREL Category'
Public methods (0)

No public methods.

New fields (2)
  • code Char
    required=True
  • name Char
    required=True string='Product group'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • action_get_eprel_registration_number(self)

New fields (8)
  • eprel_enabled Boolean
    compute='_compute_eprel_enabled' string='EPREL Enabled'
  • eprel_energy_class Char
    copy=False help='Energy class label fetched from EPREL (e.g. A, B, C).' string='Energy Class'
  • eprel_energy_class_image Char
    copy=False string='Energy Class Image'
  • eprel_model_identifier Char
    copy=False string='Model Identifier'
  • eprel_registration_number Char
    copy=False help='The EPREL registration number fetched from the API.' string='EPREL Registration Number'
  • fiche_url Char
    compute='_compute_eprel_url' readonly=True store=True string='Fiche URL'
  • label_arrow_url Char
    compute='_compute_eprel_url' readonly=True store=True string='Label Arrow URL'
  • label_url Char
    compute='_compute_eprel_url' readonly=True store=True string='Label URL'
Public methods (1)
  • action_get_eprel_registration_number(self)

New fields (1)
  • eprel_api_key Char
    string='API Key'
Public methods (0)

No public methods.

New fields (1)
  • eprel_api_key Char
    readonly=False related='company_id.eprel_api_key'
Public methods (0)

No public methods.

Loading…