Product EPREL
product_eprel · OCA/product-attribute
Health
62/100
fair
-
Security10/251 grave, 0 minor
-
Activity25/25Last human commit 5 months ago
-
Required by15/251 module depends on it
-
Maturity12/25In 2 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
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
Security warnings
res.company— Adds credential fields (eprel_api_key) with no `groups=` to 'res.company', which every user (portal/public included) can read under core's access rights: they can read them over RPC. Restrict the fields with `groups=` (e.g. base.group_system). CWE-200. acl-public-read-secret
Found by automated static analysis: these patterns are usually risky, but only a manual review of the module can confirm a real issue. Methodology
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
- 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 ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_idMany2one → product.category.eprelcomodel_name='product.category.eprel'string='EPREL Category'
No public methods.
New fields (2)
-
codeCharrequired=True -
nameCharrequired=Truestring='Product group'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
action_get_eprel_registration_number(self)
New fields (8)
-
eprel_enabledBooleancompute='_compute_eprel_enabled'string='EPREL Enabled' -
eprel_energy_classCharcopy=Falsehelp='Energy class label fetched from EPREL (e.g. A, B, C).'string='Energy Class' -
eprel_energy_class_imageCharcopy=Falsestring='Energy Class Image' -
eprel_model_identifierCharcopy=Falsestring='Model Identifier' -
eprel_registration_numberCharcopy=Falsehelp='The EPREL registration number fetched from the API.'string='EPREL Registration Number' -
fiche_urlCharcompute='_compute_eprel_url'readonly=Truestore=Truestring='Fiche URL' -
label_arrow_urlCharcompute='_compute_eprel_url'readonly=Truestore=Truestring='Label Arrow URL' -
label_urlCharcompute='_compute_eprel_url'readonly=Truestore=Truestring='Label URL'
-
action_get_eprel_registration_number(self)
New fields (1)
-
eprel_api_keyCharstring='API Key'
No public methods.
New fields (1)
-
eprel_api_keyCharreadonly=Falserelated='company_id.eprel_api_key'
No public methods.
Loading…