feat(#8): Task 4 completada - Resaltado visual para valores fuera de rango
- CSS personalizado para resaltar valores en rojo - Integración con decoration-danger de Odoo 18 - Estilos aplicados a vistas lista y formulario - Assets backend configurados en manifest
This commit is contained in:
parent
8851a8994a
commit
de9102f7e0
|
@ -17,6 +17,11 @@
|
|||
'category': 'Industries',
|
||||
'version': '18.0.1.0.0',
|
||||
'depends': ['base', 'product', 'sale'],
|
||||
'assets': {
|
||||
'web.assets_backend': [
|
||||
'lims_management/static/src/css/lims_test.css',
|
||||
],
|
||||
},
|
||||
'data': [
|
||||
'security/lims_security.xml',
|
||||
'security/ir.model.access.csv',
|
||||
|
|
21
lims_management/static/src/css/lims_test.css
Normal file
21
lims_management/static/src/css/lims_test.css
Normal file
|
@ -0,0 +1,21 @@
|
|||
/* Estilos para pruebas de laboratorio LIMS */
|
||||
|
||||
/* Resaltar valores fuera de rango con decoration-danger */
|
||||
.o_list_view .o_data_row td[name="value_numeric"].text-danger,
|
||||
.o_list_view .o_data_row td[name="value_numeric"] .text-danger {
|
||||
color: #dc3545 !important;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Asegurar que funcione con el decoration-danger de Odoo 18 */
|
||||
.o_list_renderer tbody tr td.o_list_number.text-danger,
|
||||
.o_list_renderer tbody tr td .o_field_number.text-danger {
|
||||
color: #dc3545 !important;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Para campos en vista formulario también */
|
||||
.o_form_sheet .o_field_widget[name="value_numeric"].text-danger input {
|
||||
color: #dc3545 !important;
|
||||
font-weight: bold;
|
||||
}
|
Loading…
Reference in New Issue
Block a user