Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 101 additions & 0 deletions product_eprel/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
=============
Product EPREL
=============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:63acb92eb94cf81305149bf8e5f5b5e8199b65070f2088042db63610b188e6bd
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github
:target: https://github.com/OCA/product-attribute/tree/18.0/product_eprel
:alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_eprel
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, go to Settings > General Settings. Under the
Integrations section, enter your EPREL API key.

Usage
=====

- In the **EPREL** page of the product form you will find:

- Model Identifier (required).
- URLs for product fiche, energy label, and energy arrow.

- Product categories must have a valid **EPREL Category**.
- Usage options:

1. Click **Get EPREL data** in the product form.
2. Enable the scheduled action **EPREL: Sync Product Data** in
*Settings > Technical > Scheduled Actions*.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_eprel%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Tecnativa

Contributors
------------

- `Tecnativa <https://www.tecnativa.com>`__

- Juan Carlos Oñate

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/18.0/product_eprel>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions product_eprel/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions product_eprel/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2025 Juan Carlos Oñate - Tecnativa <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Product EPREL",
"summary": "Manage EPREL model identifiers and energy label data for products.",
"version": "18.0.1.0.0",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/product-attribute",
"license": "AGPL-3",
"depends": ["product"],
"data": [
"security/ir.model.access.csv",
"views/product_category_views.xml",
"views/product_template_views.xml",
"views/res_config_settings_views.xml",
"data/eprel_cron.xml",
"data/eprel_product_categories.xml",
],
"demo": [
"demo/product_template.xml",
],
"installable": True,
}
12 changes: 12 additions & 0 deletions product_eprel/data/eprel_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="ir_cron_eprel_sync_products" model="ir.cron">
<field name="name">EPREL: Sync Product Data</field>
<field name="model_id" ref="model_product_template" />
<field name="state">code</field>
<field name="code">model._get_eprel_registration_number()</field>
<field name="interval_number">1</field>
<field name="interval_type">months</field>
<field name="active" eval="0" />
</record>
</odoo>
144 changes: 144 additions & 0 deletions product_eprel/data/eprel_product_categories.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- === REGULATION (EU) 2017/1369 === -->
<record id="eprel_electronicdisplays" model="product.category.eprel">
<field name="name">Electronic displays</field>
<field name="code">electronicdisplays</field>
</record>
<record id="eprel_washingmachines2019" model="product.category.eprel">
<field name="name">Household washing machines</field>
<field name="code">washingmachines2019</field>
</record>
<record id="eprel_washerdriers2019" model="product.category.eprel">
<field name="name">Household washer-dryers</field>
<field name="code">washerdriers2019</field>
</record>
<record id="eprel_lightsources" model="product.category.eprel">
<field name="name">Light sources</field>
<field name="code">lightsources</field>
</record>
<record id="eprel_refrigeratingappliances2019" model="product.category.eprel">
<field name="name">Refrigerating appliances</field>
<field name="code">refrigeratingappliances2019</field>
</record>
<record id="eprel_dishwashers2019" model="product.category.eprel">
<field name="name">Household dishwashers</field>
<field name="code">dishwashers2019</field>
</record>
<record
id="eprel_refrigeratingappliancesdirectsalesfunction"
model="product.category.eprel"
>
<field name="name">Refrigerating appliances with a direct sales function</field>
<field name="code">refrigeratingappliancesdirectsalesfunction</field>
</record>
<record id="eprel_tyres" model="product.category.eprel">
<field name="name">Tyres</field>
<field name="code">tyres</field>
</record>
<record id="eprel_smartphonestablets20231669" model="product.category.eprel">
<field name="name">Smartphones and slate tablets</field>
<field name="code">smartphonestablets20231669</field>
</record>
<record id="eprel_tumbledryers20232534" model="product.category.eprel">
<field name="name">Household tumble dryers</field>
<field name="code">tumbledryers20232534</field>
</record>
<!-- === DIRECTIVE 2010/30/EU === -->
<record id="eprel_airconditioners" model="product.category.eprel">
<field name="name">Air conditioners</field>
<field name="code">airconditioners</field>
</record>
<record id="eprel_ovens" model="product.category.eprel">
<field name="name">Domestic Ovens</field>
<field name="code">ovens</field>
</record>
<record id="eprel_rangehoods" model="product.category.eprel">
<field name="name">Range hoods</field>
<field name="code">rangehoods</field>
</record>
<record id="eprel_tumbledriers" model="product.category.eprel">
<field name="name">Household tumble driers</field>
<field name="code">tumbledriers</field>
</record>
<record id="eprel_localspaceheaters" model="product.category.eprel">
<field name="name">Local space heaters</field>
<field name="code">localspaceheaters</field>
</record>
<record
id="eprel_professionalrefrigeratedstoragecabinets"
model="product.category.eprel"
>
<field name="name">Professional refrigerating storage cabinets</field>
<field name="code">professionalrefrigeratedstoragecabinets</field>
</record>
<record id="eprel_residentialventilationunits" model="product.category.eprel">
<field name="name">Residential Ventilation Units</field>
<field name="code">residentialventilationunits</field>
</record>
<record id="eprel_solidfuelboilers" model="product.category.eprel">
<field name="name">Solid fuel boilers</field>
<field name="code">solidfuelboilers</field>
</record>
<record id="eprel_solidfuelboilerpackages" model="product.category.eprel">
<field name="name">Packages of solid fuel boilers</field>
<field name="code">solidfuelboilerpackages</field>
</record>
<record id="eprel_spaceheaters" model="product.category.eprel">
<field name="name">Space heaters/Combination heaters</field>
<field name="code">spaceheaters</field>
</record>
<record id="eprel_spaceheaterpackages" model="product.category.eprel">
<field name="name">Packages of space heaters/combinations heaters</field>
<field name="code">spaceheaterpackages</field>
</record>
<record id="eprel_spaceheatertemperaturecontrol" model="product.category.eprel">
<field name="name">Temperature controls for space heaters</field>
<field name="code">spaceheatertemperaturecontrol</field>
</record>
<record id="eprel_spaceheatersolardevice" model="product.category.eprel">
<field name="name">Solar devices for space heaters</field>
<field name="code">spaceheatersolardevice</field>
</record>
<record id="eprel_waterheaters" model="product.category.eprel">
<field name="name">Water heaters</field>
<field name="code">waterheaters</field>
</record>
<record id="eprel_waterheaterpackages" model="product.category.eprel">
<field name="name">Packages of water heaters</field>
<field name="code">waterheaterpackages</field>
</record>
<record id="eprel_hotwaterstoragetanks" model="product.category.eprel">
<field name="name">Hot water storage tanks for water heaters</field>
<field name="code">hotwaterstoragetanks</field>
</record>
<record id="eprel_waterheatersolardevices" model="product.category.eprel">
<field name="name">Solar devices for water heaters</field>
<field name="code">waterheatersolardevices</field>
</record>
<!-- === REPEALED REGULATIONS === -->
<record id="eprel_lamps" model="product.category.eprel">
<field name="name">Electrical Lamps</field>
<field name="code">lamps</field>
</record>
<record id="eprel_washerdriers_old" model="product.category.eprel">
<field name="name">Household combined washer-driers</field>
<field name="code">washerdriers</field>
</record>
<record id="eprel_dishwashers_old" model="product.category.eprel">
<field name="name">Household dishwashers</field>
<field name="code">dishwashers</field>
</record>
<record id="eprel_refrigeratingappliances_old" model="product.category.eprel">
<field name="name">Household refrigerating appliances</field>
<field name="code">refrigeratingappliances</field>
</record>
<record id="eprel_washingmachines_old" model="product.category.eprel">
<field name="name">Household washing machines</field>
<field name="code">washingmachines</field>
</record>
<record id="eprel_televisions" model="product.category.eprel">
<field name="name">Televisions</field>
<field name="code">televisions</field>
</record>
</odoo>
22 changes: 22 additions & 0 deletions product_eprel/demo/product_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record
id="eprel_category_smartphonestablets20231669"
model="product.category.eprel"
>
<field name="name">Smartphones and slate tablets</field>
<field name="code">smartphonestablets20231669</field>
</record>
<record id="product_category_smartphones" model="product.category">
<field name="name">Smartphones</field>
<field
name="eprel_category_id"
ref="eprel_category_smartphonestablets20231669"
/>
</record>
<record id="product_template_edge_60_pro" model="product.template">
<field name="name">Edge 60 Pro</field>
<field name="categ_id" ref="product_category_smartphones" />
<field name="eprel_model_identifier">edge 60 pro (XT2507-1)</field>
</record>
</odoo>
Loading