diff --git a/stock_picking_batch_custom/models/stock_picking_batch.py b/stock_picking_batch_custom/models/stock_picking_batch.py index 4e75122..8e99785 100644 --- a/stock_picking_batch_custom/models/stock_picking_batch.py +++ b/stock_picking_batch_custom/models/stock_picking_batch.py @@ -221,6 +221,28 @@ class StockPickingBatch(models.Model): product_names, ) + def action_open_operator_view(self): + self.ensure_one() + return { + "type": "ir.actions.act_window", + "name": self.name, + "res_model": "stock.move.line", + "view_mode": "list", + "views": [ + ( + self.env.ref( + "stock_picking_batch_custom.view_move_line_batch_operator" + ).id, + "list", + ) + ], + "domain": [("batch_id", "=", self.id)], + "context": { + "create": False, + "delete": False, + }, + } + class StockPickingBatchSummaryLine(models.Model): _name = "stock.picking.batch.summary.line" 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 75431d9..68a9ada 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 @@ -18,3 +18,30 @@ table.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 { + 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"] { + min-width: 130px; +} + +table.o_batch_operator_list td[name="quantity"] .o_field_widget input { + min-height: 48px; + font-size: 1.2rem; + text-align: center; +} + +table.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 { + transform: scale(1.4); +} 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 d84b319..1193dce 100644 --- a/stock_picking_batch_custom/views/stock_picking_batch_views.xml +++ b/stock_picking_batch_custom/views/stock_picking_batch_views.xml @@ -17,11 +17,38 @@ + + stock.move.line.batch.operator + stock.move.line + + + + + + + + + + + + + + stock.picking.batch.form.summary stock.picking.batch + +