Monday, April 21, 2025
1 change · 18.0
Resolved issues and error corrections
When a sales order with tracked products is settled in Point of Sale, the correct lot or serial numbers are now retrieved and applied to the order line. This helps ensure inventory traceability remains accurate and avoids manual corrections during checkout.
Original PR description
Steps to reproduce: === - Ensure the product has "track inventory" by lot/serial number. - Create and confirm a Sales Order (SO) with this product. - Open the POS session. - Click on the control button → Quotation/Order. - Settle the SO. - The lot/serial number is not selected on the order line. Issue: === - The system does not fetch and assign the lot/serial number when settling SO. Fix: === - Added a method `get_lot_names` in `sale.order.line` to fetch assigned lot/serial numbers. related-https://github.com/odoo/enterprise/pull/79055 task-4558015