[FIX] stock_batch_picking_ux: reset quantities to zero only on reception batches#954
Closed
les-adhoc wants to merge 1 commit into
Closed
[FIX] stock_batch_picking_ux: reset quantities to zero only on reception batches#954les-adhoc wants to merge 1 commit into
les-adhoc wants to merge 1 commit into
Conversation
Collaborator
…ion batches The action_confirm override zeroed the quantity of every operation line in the batch, which on deliveries/waves (outgoing pickings) wrongly removed the product availability and pushed orders to 'waiting'. The zeroing was meant only for partial receptions (task 68226 RF-02), so restrict it to incoming pickings. Ticket 120763
f929d5a to
e8b8a70
Compare
Contributor
|
@roboadhoc r+ nobump |
roboadhoc
pushed a commit
that referenced
this pull request
Jun 18, 2026
…ion batches The action_confirm override zeroed the quantity of every operation line in the batch, which on deliveries/waves (outgoing pickings) wrongly removed the product availability and pushed orders to 'waiting'. The zeroing was meant only for partial receptions (task 68226 RF-02), so restrict it to incoming pickings. Ticket 120763 closes #954 Signed-off-by: Matias Velazquez <mav@adhoc.com.ar>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problema (ticket 120763)
Al armar olas/entregas (pickings de salida) agrupando pedidos en un
stock.picking.batch, los pedidos quedaban con disponibilidad 0 y pasaban de "a procesar" a "en espera", bloqueando el pickeo.Causa
El override de
action_confirm()agregado en la tarea 68226 (RF-02) reseteabaquantity = 0en todas las líneas del batch al confirmar. Esa inicialización en cero estaba pensada solo para recepciones parciales (RF-02 original: "Inicialización de Cantidades en Cero para Recepciones Parciales"), pero se aplicaba también a entregas y movimientos internos, quitándoles la cantidad reservada.Fix
Restringir el reseteo a líneas de pickings de recepción (
picking_type_id.code == 'incoming'). Entregas/olas y movimientos internos ya no se tocan.Cómo probar
Relacionado: tarea 68226 (desarrollo original), PR #940 (ya mergeado).