mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] stock_quant_manual_assign: Related fields are not filled if not default them
This commit is contained in:
committed by
Fanha Giang
parent
85c7cb5206
commit
aefe6ad126
@@ -87,6 +87,9 @@ class AssignManualQuants(models.TransientModel):
|
||||
line = {}
|
||||
line['quant_id'] = quant.id
|
||||
line['on_hand'] = quant.quantity
|
||||
line['location_id'] = quant.location_id.id
|
||||
line['lot_id'] = quant.lot_id.id
|
||||
line['package_id'] = quant.package_id.id
|
||||
line['selected'] = False
|
||||
move_lines = move.move_line_ids.filtered(
|
||||
lambda ml: (ml.location_id == quant.location_id and
|
||||
@@ -137,7 +140,6 @@ class AssignManualQuantsLines(models.TransientModel):
|
||||
qty = fields.Float(
|
||||
string='QTY', digits=dp.get_precision('Product Unit of Measure'))
|
||||
|
||||
@api.multi
|
||||
@api.onchange('selected')
|
||||
def _onchange_selected(self):
|
||||
for record in self:
|
||||
|
||||
Reference in New Issue
Block a user