Files
goodie/addons/stock/models/stock.go
Marc 118d8ee4f5 Fix stock move line creation: add date + product_uom_id columns
The INSERT INTO stock_move_line was missing product_uom_id and date
columns which are NOT NULL. Now copies product_uom and date from the
parent stock_move record.

Full stock flow now works:
- Confirm: reserves quants (qty=100, reserved=5)
- Move state: draft → assigned (with move_line created)
- Validate: source quant 100→95, dest quant 0→5, state → done

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 00:21:41 +02:00

28 KiB