Skip to content

Commit

Permalink
[FIX]stock_ux: reserved qty
Browse files Browse the repository at this point in the history
X-original-commit: a893b6b
Part-of: #580
  • Loading branch information
mav-adhoc committed Dec 4, 2024
1 parent 0a51bed commit 3574b83
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stock_ux/models/stock_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ def _check_manual_lines(self):
if any(self.filtered(
lambda x:
not x.location_id.should_bypass_reservation() and
x.picking_id.picking_type_id.block_manual_lines and
x.reserved_qty < x.quantity)):
x.picking_id.picking_type_id.block_manual_lines)):
raise ValidationError(_(
"You can't transfer more quantity than reserved one!"))

Expand Down Expand Up @@ -104,4 +103,3 @@ def _get_aggregated_product_quantities(self, **kwargs):
aggregated_move_lines[line]['name'] = ', '.join(moves.mapped('origin_description'))

return aggregated_move_lines

0 comments on commit 3574b83

Please sign in to comment.