Repository
OCA/product-attribute · module folder · Try on Runboat
Module version
1.0.1
Category
Uncategorized
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/product-attribute
Last tracking update
2026-08-07 08:42:54
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
Weblate, OCA-git-bot, oca-ci, juancarlosonate-tecnativa, eduezerouali-tecnativa
Odoo dependencies
odoo/odoo:
- web
- bus
- uom
Python dependencies
None
System dependencies
None
Required by
website_sale_product_eprel
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.

Code Analysis

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…