mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX] rma_scrap: minor lint error
[FIX] rma_scrap: ensure scrapping serials will scrap just 1 unit & ensure scrapped quantity is always positve [FIX] rma_scrap: scrap quantity should consider the quantity in the stock moves not the product_uom_qty [IMP] rma_scrap: test serial case
This commit is contained in:
committed by
JasminSForgeFlow
parent
fc83285b6e
commit
3c5f311f84
@@ -49,7 +49,7 @@ class RmaOrderLine(models.Model):
|
||||
for move in rec.move_ids.filtered(
|
||||
lambda m: m.state in ["done"] and m.is_rma_scrap
|
||||
):
|
||||
qty += product_obj._compute_quantity(move.product_uom_qty, rec.uom_id)
|
||||
qty += product_obj._compute_quantity(move.quantity, rec.uom_id)
|
||||
rec.qty_scrap = qty
|
||||
|
||||
def _compute_scrap_count(self):
|
||||
|
||||
Reference in New Issue
Block a user