[IMP] stock_picking_batch_collect: collected checks on transfers, ordered quantity, delivery slips report

- The collected checks also apply to transfers outside a batch, opt-in per
  operation type ("Require Collected Lines"), with the batch restrictions of
  the settings. A per-product toggle in the transfer's Operations tab collects
  all its lines.
- Read-only ordered quantity from the sale line on every batch and transfer
  view, since the weighed demand overwrites it. Adds a dependency on
  sale_stock; a migration fills it in the summary of open batches.
- "Delivery Slips" report on the batch: all its delivery slips in one PDF.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GitHub Copilot 2026-10-04 14:32:38 +02:00
parent 76dc355c6c
commit 9c81cb986d
Signed by: snt
GPG key ID: A9FD34930EADBE71
24 changed files with 630 additions and 39 deletions

View file

@ -62,6 +62,7 @@ msgid "Batch Transfer"
msgstr "Traslado por lote"
#. module: stock_picking_batch_collect
#: model:ir.model.fields,field_description:stock_picking_batch_collect.field_stock_move__is_collected
#: model:ir.model.fields,field_description:stock_picking_batch_collect.field_stock_move_line__is_collected
#: model:ir.model.fields,field_description:stock_picking_batch_collect.field_stock_picking_batch_summary_line__is_collected
msgid "Collected"
@ -233,3 +234,51 @@ msgstr "Si este albarán incluye entrega a domicilio (del pedido de venta)"
#: model_terms:ir.ui.view,arch_db:stock_picking_batch_collect.view_stock_picking_batch_form_inherit_summary
msgid "Basket Assembly"
msgstr "Montaje de Cestas"
#. module: stock_picking_batch_collect
#: model:ir.model.fields,field_description:stock_picking_batch_collect.field_stock_move__sale_ordered_qty
#: model:ir.model.fields,field_description:stock_picking_batch_collect.field_stock_move_line__sale_ordered_qty
#: model:ir.model.fields,field_description:stock_picking_batch_collect.field_stock_picking_batch_summary_line__qty_ordered
msgid "Ordered Quantity"
msgstr "Cantidad pedida"
#. module: stock_picking_batch_collect
#: model_terms:ir.ui.view,arch_db:stock_picking_batch_collect.view_move_line_batch_operator
msgid "Ordered"
msgstr "Pedido"
#. module: stock_picking_batch_collect
#: model:ir.model.fields,field_description:stock_picking_batch_collect.field_stock_picking_type__collected_check_required
msgid "Require Collected Lines"
msgstr "Exigir líneas recogidas"
#. module: stock_picking_batch_collect
#: model:ir.model.fields,help:stock_picking_batch_collect.field_stock_picking_type__collected_check_required
msgid ""
"Transfers of this type that are not in a batch can only be validated once "
"their lines are marked as collected, following the batch validation "
"restrictions of the inventory settings."
msgstr ""
"Los albaranes de este tipo que no estén en un lote solo se pueden validar "
"cuando sus líneas estén marcadas como recogidas, según las restricciones de "
"validación de lotes de los ajustes de inventario."
#. module: stock_picking_batch_collect
#: model:ir.actions.report,name:stock_picking_batch_collect.action_report_batch_deliveryslip
msgid "Delivery Slips"
msgstr "Albaranes"
#. module: stock_picking_batch_collect
#: model:ir.model,name:stock_picking_batch_collect.model_report_stock_picking_batch_collect_report_batch_deliveryslip
msgid "Batch Delivery Slips"
msgstr "Albaranes del lote"
#. module: stock_picking_batch_collect
#: code:addons/stock_picking_batch_collect/models/stock_picking.py:0
#, python-format
msgid ""
"You must mark the operations of %(picking)s as collected before validating it.\n"
"Pending products: %(products)s"
msgstr ""
"Hay que marcar como recogidas las operaciones de %(picking)s antes de validarlo.\n"
"Productos pendientes: %(products)s"