Lines of code | 495 |
Technical Name |
l10n_fr_web_repairability_index_widget |
License | OPL-1 |
Website | https://codingdodo.com |
Lines of code | 495 |
Technical Name |
l10n_fr_web_repairability_index_widget |
License | OPL-1 |
Website | https://codingdodo.com |

This module does NOT contain the "Repairability Index" Field on Product, only the widgets and everything necessary to display.
If you are looking for the "Repairability Index" Field on Product and display on Website, please check the l10n_fr_website_repairability_index module.
- Used inside a
<form>
on afield.Float
it will show an interractive Index selector in Edit mode (see below GIF). - Used on QWeb, Website, Reports it will be a readonly display of the Repairability Index with official design system (colors, font, icon)

Use of the official design system given by french governement.
Dynamically changes color and handles values < 0 and > 10. Subscribes to Odoo auto-save events.
'Marianne' Official french government font is used to display the score and the sub-text
This Field widget follows the standard of the already rewritten Odoo field Widgets.
Use in your code
In backend views
To use the widget Inside a backend view simply add the attribute widget="repairability_index"
on your field:

In QWeb (Website / Reports)
To display the Repairability Index on Qweb you will need the t-out
and t-options
directives

Available size
options are lg
, md
(default), sm
, and xs
.
Example on the website different sizes

Example on product label PDF size "sm"

Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module