Skip to content

Commit

Permalink
Merge pull request #480 from frePPLe/17.0
Browse files Browse the repository at this point in the history
Syncing from upstream frePPLe/odoo (17.0)
  • Loading branch information
bt-admin authored Sep 13, 2024
2 parents 20e3cf0 + 9e13e2a commit 441356c
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions frepple/controllers/outbound.py
Original file line number Diff line number Diff line change
Expand Up @@ -1981,10 +1981,22 @@ def getReservedQuantity(stock_move_id):
for i in so_line:
name = "%s %d" % (i["order_id"][1], i["id"])
batch = i["order_id"][1]
product = self.product_product.get(i["product_id"][0], None)
product = (
self.product_product.get(i["product_id"][0], None)
if i["product_id"]
else None
)
j = so[i["order_id"][0]]
location = j["warehouse_id"][1]
customer = self.map_customers.get(j["partner_id"][0], None)
location = (
self.warehouses.get(j["warehouse_id"][0], None)
if j["warehouse_id"]
else None
)
customer = (
self.map_customers.get(j["partner_id"][0], None)
if j["partner_id"]
else None
)

if not customer or not location or not product:
# Not interested in this sales order...
Expand Down

0 comments on commit 441356c

Please sign in to comment.