Skip to content
Snippets Groups Projects
Commit ed41d4f4 authored by Adrien Widart's avatar Adrien Widart
Browse files

[FIX] stock_picking_batch: validate batch with done transfers


Validating a batch doesn't work if, for instance, all included pickings
are already done

To reproduce the issue:
1. In Settings, enable "Batch Pickings"
2. Create a batch transfer BT with one picking P
3. Confirm BT
4. Process P (not BT)
5. Mark BT as done

Error: The "Immediate Transfer" wizard is displayed while it shouldn't.
(Then if the user clicks on "Apply", nothing happens, the BT is still in
progress)

The wizard is displayed if the number of not done/cancelled picking is
equal to the number of not done/cancelled pickings that do not have any
done quantity (which is the case here, each is equal to `0`)

OPW-2727764
OPW-2726257

closes odoo/odoo#82228

Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
parent e4b35090
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment