[IMP] stock_picking_batch_custom: add full-screen operator view for batch picking
Add a "Vista Operarios" button in the batch form header (visible when in_progress) that opens a full-screen list of stock.move.line filtered by the current batch. The view shows only the fields operators need (category, product, partner, home_delivery, consumer_group, collected, quantity) with larger rows and touch-friendly quantity input via CSS. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c8e0461120
commit
a9a14e7db5
3 changed files with 76 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue