Skip to content

Commit

Permalink
Merge pull request #459 from frePPLe/16.0
Browse files Browse the repository at this point in the history
Syncing from upstream frePPLe/odoo (16.0)
  • Loading branch information
bt-admin authored Jul 13, 2024
2 parents bfced59 + 5ec9579 commit 7381c5d
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 @@ -2826,16 +2826,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 7381c5d

Please sign in to comment.