From 1b20b23fc0e00b1f0b51ebbcf92fe742a7649981 Mon Sep 17 00:00:00 2001 From: snt Date: Tue, 19 May 2026 15:30:11 +0200 Subject: [PATCH] =?UTF-8?q?[IMP]=20stock=5Fpicking=5Fbatch=5Fcustom:=20UX?= =?UTF-8?q?=20-=20zebra=20rows,=20mostrar=20categor=C3=ADa=20a=20la=20izqu?= =?UTF-8?q?ierda,=20company+uom=20ocultables,=20a=C3=B1adir=20CSS=20assets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/src/css/stock_picking_batch.css | 18 ++++++++++++++++++ .../views/stock_picking_batch_views.xml | 12 +++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 stock_picking_batch_custom/static/src/css/stock_picking_batch.css diff --git a/stock_picking_batch_custom/static/src/css/stock_picking_batch.css b/stock_picking_batch_custom/static/src/css/stock_picking_batch.css new file mode 100644 index 0000000..52f70bb --- /dev/null +++ b/stock_picking_batch_custom/static/src/css/stock_picking_batch.css @@ -0,0 +1,18 @@ +/* zebra striping for list views in this module */ + +/* Target Odoo list/tree view tables. Use a specific, but broad selector to + avoid interfering globally with other modules. */ +.o_list_view .o_list_view_table tbody tr:nth-child(even) td { + background-color: rgba(0, 0, 0, 0.03); +} + +/* Slight hover contrast to improve row focus */ +.o_list_view .o_list_view_table tbody tr:hover td { + background-color: rgba(0, 0, 0, 0.045); +} + +/* Ensure checkboxes / toggle columns maintain contrast */ +.o_list_view .o_list_view_table tbody tr:nth-child(even) td .o_field_widget, +.o_list_view .o_list_view_table tbody tr:nth-child(even) td .o_field_widget * { + background: transparent; +} diff --git a/stock_picking_batch_custom/views/stock_picking_batch_views.xml b/stock_picking_batch_custom/views/stock_picking_batch_views.xml index 0c6b75e..cd9bd6d 100644 --- a/stock_picking_batch_custom/views/stock_picking_batch_views.xml +++ b/stock_picking_batch_custom/views/stock_picking_batch_views.xml @@ -5,8 +5,11 @@ stock.picking.batch.summary.line + + - + + @@ -39,4 +42,11 @@ + + +