From ffd76ca5dbded571167371fbb7c7bf1d21d0d4df Mon Sep 17 00:00:00 2001 From: AaronHForgeFlow Date: Fri, 12 Jul 2024 10:47:10 +0200 Subject: [PATCH] [FIX] rma: vendor rma lot mnmg --- rma/wizards/rma_make_picking.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rma/wizards/rma_make_picking.py b/rma/wizards/rma_make_picking.py index 9362a155..3f8985dc 100644 --- a/rma/wizards/rma_make_picking.py +++ b/rma/wizards/rma_make_picking.py @@ -232,8 +232,6 @@ class RmaMakePicking(models.TransientModel): ) 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, } ) @@ -252,8 +250,7 @@ class RmaMakePicking(models.TransientModel): { "lot_id": move.rma_line_id.lot_id.id, "product_uom_id": move.product_id.uom_id.id, - "qty_done": 0, - "reserved_uom_qty": qty if picking_type == "incoming" else 0, + "quantity": qty, } ) move_line_model.create(move_line_data)