Monday, April 21, 2025
3 changes
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
This update improves an automated check for settling rental sales orders in the point of sale flow. It helps ensure the system correctly handles orders involving tracked items, reducing the risk of test failures around rental order settlement.
Original PR description
In this commit: === - Updated the settleNthOrder function to accept a hasLot parameter to properly close the popup when settling a Sales Order. related-https://github.com/odoo/odoo/pull/197307 task-4558015
Fixed an issue where confirming an upsell could incorrectly change an already fully invoiced subscription to “Nothing to Invoice.” The subscription now keeps its correct fully invoiced status, reducing confusion for sales and billing teams while the upsell order handles any new items.
Original PR description
### Steps to Reproduce: 1) Create a fully invoiced subscription. 2) Add an upsell quote to the subscription. 3) Verify that the invoice status of the original subscription is "Fully Invoiced". 4) Confirm upsell order. 5) Verify that the invoice status of the original subscription has been updated to "Nothing to Invoice". ### Current Behavior: After confirming the upsell, the subscription status changes from Fully Invoiced to Nothing to Invoice. ### Expected Behavior: After confirming the upsell, the subscription status remains "Fully Invoiced." This is because an invoice was already created before the upsell, and the product_uom_qty and qty_invoiced are equal. Since the upsell order will handle the products added during the upsell, the invoice status of the original subscription should not be updated. opw-4508297