[FIX] stock_picking_batch_custom: fix zebra striping selectors for Odoo 18
Replace old Odoo 16/17 class names (.o_list_view_table) with Odoo 18 equivalents (table.o_list_table, tr.o_data_row) so zebra striping renders correctly in the detailed operations list view. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f983d71ea3
commit
07bd632537
1 changed files with 6 additions and 9 deletions
|
|
@ -1,18 +1,15 @@
|
||||||
/* zebra striping for list views in this module */
|
/* zebra striping for list views in this module (Odoo 18 selectors) */
|
||||||
|
|
||||||
/* Target Odoo list/tree view tables. Use a specific, but broad selector to
|
table.o_list_table tbody tr.o_data_row:nth-child(even) td {
|
||||||
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);
|
background-color: rgba(0, 0, 0, 0.03);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Slight hover contrast to improve row focus */
|
table.o_list_table tbody tr.o_data_row:hover td {
|
||||||
.o_list_view .o_list_view_table tbody tr:hover td {
|
|
||||||
background-color: rgba(0, 0, 0, 0.045);
|
background-color: rgba(0, 0, 0, 0.045);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ensure checkboxes / toggle columns maintain contrast */
|
/* Ensure field widgets inside striped rows stay transparent */
|
||||||
.o_list_view .o_list_view_table tbody tr:nth-child(even) td .o_field_widget,
|
table.o_list_table tbody tr.o_data_row:nth-child(even) td .o_field_widget,
|
||||||
.o_list_view .o_list_view_table tbody tr:nth-child(even) td .o_field_widget * {
|
table.o_list_table tbody tr.o_data_row:nth-child(even) td .o_field_widget * {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue