[FIX] rma: vendor rma lot mnmg

This commit is contained in:
AaronHForgeFlow
2024-07-12 10:47:10 +02:00
parent 7dfa4251df
commit 2c9a213677

View File

@@ -232,8 +232,6 @@ class RmaMakePicking(models.TransientModel):
) )
move.move_line_ids.write( move.move_line_ids.write(
{ {
"reserved_uom_qty": 1 if picking_type == "incoming" else 0,
"qty_done": 0,
"package_id": len(quants) == 1 and quants.package_id.id, "package_id": len(quants) == 1 and quants.package_id.id,
} }
) )
@@ -252,8 +250,7 @@ class RmaMakePicking(models.TransientModel):
{ {
"lot_id": move.rma_line_id.lot_id.id, "lot_id": move.rma_line_id.lot_id.id,
"product_uom_id": move.product_id.uom_id.id, "product_uom_id": move.product_id.uom_id.id,
"qty_done": 0, "quantity": qty,
"reserved_uom_qty": qty if picking_type == "incoming" else 0,
} }
) )
move_line_model.create(move_line_data) move_line_model.create(move_line_data)