[FIX] stock_quant_manual_assign: lot_id and package_id not populated automatically

This commit is contained in:
Pedro M. Baeza
2015-11-11 00:59:09 +01:00
committed by Cyril Gaudin
parent 98345109bd
commit 509fdbaa66

View File

@@ -64,6 +64,8 @@ class AssignManualQuants(models.TransientModel):
('reservation_id', '=', move.id)])
quants_lines = [{
'quant': x.id,
'lot_id': x.lot_id.id,
'package_id': x.package_id.id,
'selected': x in move.reserved_quant_ids,
'qty': x.qty if x in move.reserved_quant_ids else 0,
'location_id': x.location_id.id,