From f5ba2d786c218d78e3135d98608b271e97eedf4d Mon Sep 17 00:00:00 2001 From: GitHub Copilot Date: Fri, 29 May 2026 19:32:34 +0200 Subject: [PATCH] [FIX] stock_picking_batch_custom: fix CSS specificity for quantity font-size in operator view The general tbody tr.o_data_row td rule had higher specificity (0,3,2) than td[name="quantity"] (0,2,1), overriding the 1.5rem font-size. Fixed by using tbody tr.o_data_row td[name="quantity"] (0,3,3) for the size/weight override. Also fixed table. prefix on all selectors: arch class lands on the controller root div, not the element. Co-Authored-By: Claude Sonnet 4.6 --- .../static/src/css/stock_picking_batch.css | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) 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 index a8f6bd1..fcbad0d 100644 --- a/stock_picking_batch_custom/static/src/css/stock_picking_batch.css +++ b/stock_picking_batch_custom/static/src/css/stock_picking_batch.css @@ -9,43 +9,48 @@ table.o_list_table tbody tr.o_data_row:hover td { } /* Widen the quantity column in detailed operations so it is easier to tap */ -table.o_batch_move_line_list th[data-name="quantity"], -table.o_batch_move_line_list td[name="quantity"] { +/* Note: arch class lands on the root
of the list controller, not
*/ +.o_batch_move_line_list th[data-name="quantity"], +.o_batch_move_line_list td[name="quantity"] { min-width: 140px; } -table.o_batch_move_line_list td[name="quantity"] .o_field_widget input { +.o_batch_move_line_list td[name="quantity"] .o_field_widget input { min-height: 44px; font-size: 1.1rem; } /* ── Operator view: full-screen, touch-optimised list ── */ -table.o_batch_operator_list tbody tr.o_data_row td { +.o_batch_operator_list tbody tr.o_data_row td { padding-top: 10px; padding-bottom: 10px; font-size: 1.05rem; } -table.o_batch_operator_list th[data-name="quantity"], -table.o_batch_operator_list td[name="quantity"] { +.o_batch_operator_list th[data-name="quantity"], +.o_batch_operator_list td[name="quantity"] { min-width: 130px; - font-size: 1.5rem; - font-weight: 700; text-align: center; } -table.o_batch_operator_list td[name="quantity"] .o_field_widget input { +/* Higher specificity to override the general row td font-size rule */ +.o_batch_operator_list tbody tr.o_data_row td[name="quantity"] { + font-size: 1.5rem; + font-weight: 700; +} + +.o_batch_operator_list td[name="quantity"] .o_field_widget input { min-height: 56px; font-size: 1.5rem; font-weight: 700; text-align: center; } -table.o_batch_operator_list td[name="is_collected"] { +.o_batch_operator_list td[name="is_collected"] { min-width: 80px; text-align: center; } -table.o_batch_operator_list td[name="is_collected"] .o_field_widget { +.o_batch_operator_list td[name="is_collected"] .o_field_widget { transform: scale(1.4); }