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 @@ + + +