diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-10-16 14:56:12 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-10-16 14:56:12 +0700 |
| commit | e60bfff5a9ec49545370b1804b33535b5f373b60 (patch) | |
| tree | 09f3b3d59882492e618d578443989f7c66d7273a /indoteknik_custom/models/approval_unreserve.py | |
| parent | cee154a43c181b4ba1feda600028dffe198fb48b (diff) | |
cr approval unreserve
Diffstat (limited to 'indoteknik_custom/models/approval_unreserve.py')
| -rw-r--r-- | indoteknik_custom/models/approval_unreserve.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/approval_unreserve.py b/indoteknik_custom/models/approval_unreserve.py index 85dfffff..07ddda1f 100644 --- a/indoteknik_custom/models/approval_unreserve.py +++ b/indoteknik_custom/models/approval_unreserve.py @@ -68,7 +68,7 @@ class ApprovalUnreserve(models.Model): if not move: raise UserError("Product tidak ada di destination picking") - qty_unreserve = line.unreserve_qty + move.forecast_availability + qty_unreserve = line.unreserve_qty + move.reserved_availability if move.product_uom_qty < qty_unreserve: raise UserError("Quantity yang di unreserve melebihi quantity yang ada") |
