[FIX] stock_picking_batch: print correct num of labels

PR https://github.com/odoo/odoo/pull/106414 made it so the
`product.label.layout` expecting `stock.move` ids rather than
`stock.move.line` ids. Unfortunately it missed updating this for the
batch picking case => when printing the labels for a batch picking,
only 1 label was printed per product rather than the qty done.

Note that this issue does not occur when the batch is Done + has
lots/SNs assigned in it

closes odoo/odoo#118995

X-original-commit: a5af45a8e3ff8860655351dd76a11f1dbb6d8a70
Signed-off-by: Steve Van Essche <svs@odoo.com>
Signed-off-by: Tiffany Chang <tic@odoo.com>
This commit is contained in:
Tiffany Chang (tic)
2023-04-19 11:01:19 +02:00
parent 608c1ea100
commit 2177a045d0
@@ -314,7 +314,7 @@ class StockPickingBatch(models.Model):
'target': 'new',
'context': {
'default_product_ids': self.move_line_ids.product_id.ids,
'default_move_line_ids': self.move_line_ids.ids,
'default_move_ids': self.move_ids.ids,
'default_picking_quantity': 'picking'},
}