Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 79c22d9

Browse files
committedFeb 27, 2025·
[17.0][FIX] stock_quant_manual_assign: fix calculation in the quant manual reservation for MO
1 parent 3491fb9 commit 79c22d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎stock_quant_manual_assign/wizard/assign_manual_quants.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def _onchange_selected(self):
185185
# validation.
186186
quant_qty = self.on_hand - self.reserved
187187
remaining_qty = self.assign_wizard.move_qty
188-
self.qty = min(quant_qty, remaining_qty)
188+
self.qty = max(0, min(quant_qty, remaining_qty))
189189

190190
@api.constrains("qty")
191191
def _check_qty(self):

0 commit comments

Comments
 (0)
Please sign in to comment.