Skip to content

Commit

Permalink
[FIX]stock_ux: reserved qty
Browse files Browse the repository at this point in the history
  • Loading branch information
mav-adhoc committed Oct 29, 2024
1 parent 4eeb6e3 commit 235dc21
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 235dc21

Please sign in to comment.