Skip to content

Commit

Permalink
Merge pull request #460 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 Jul 13, 2024
2 parents 3783ee1 + 9806e2d commit 5f33de2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frepple/controllers/outbound.py
Original file line number Diff line number Diff line change
Expand Up @@ -2860,16 +2860,16 @@ def export_stockorders(self):
stock_quant.location_id,
sum(stock_quant.quantity) as quantity,
sum(stock_quant.reserved_quantity) as reserved_quantity,
stock_production_lot.name as lot_name,
stock_production_lot.expiration_date
stock_lot.name as lot_name,
stock_lot.expiration_date
FROM stock_quant
left outer join stock_production_lot on stock_quant.lot_id = stock_production_lot.id
and stock_production_lot.product_id = stock_quant.product_id
left outer join stock_lot on stock_quant.lot_id = stock_lot.id
and stock_lot.product_id = stock_quant.product_id
WHERE quantity > 0
GROUP BY stock_quant.product_id,
stock_quant.location_id,
stock_production_lot.name,
stock_production_lot.expiration_date
stock_lot.name,
stock_lot.expiration_date
ORDER BY location_id ASC
"""
)
Expand Down

0 comments on commit 5f33de2

Please sign in to comment.