Skip to content

Commit

Permalink
Merge pull request #507 from frePPLe/18.0
Browse files Browse the repository at this point in the history
Syncing from upstream frePPLe/odoo (18.0)
  • Loading branch information
bt-admin authored Mar 4, 2025
2 parents ce61c69 + 4aa7d28 commit 8f84fa8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frepple/controllers/outbound.py
Original file line number Diff line number Diff line change
Expand Up @@ -1906,9 +1906,7 @@ def getReservedQuantity(stock_move_id):
reserved_quantity = 0
if stock_move_id in stock_moves_dict:
mv = stock_moves_dict[stock_move_id]
reserved_quantity = (
mv["quantity"] if mv["procure_method"] != "make_to_stock" else 0
)
reserved_quantity = mv["quantity"] or 0
for i in mv["move_orig_ids"]:
if i != stock_move_id:
reserved_quantity += getReservedQuantity(i)
Expand Down

0 comments on commit 8f84fa8

Please sign in to comment.