Monday, September 2, 2024
2 changes · 17.0
Resolved issues and error corrections
This fix ensures that when mobile users change a tracked product line from zero to a positive quantity, Odoo automatically fills in an available lot when one exists. It prevents stock operations from being saved with quantities missing required lot information, reducing manual corrections and inventory traceability issues.
Original PR description
**Current behavior:** In the mobile view for detailed operations of a picking (move lines), the user fills in each field individually instead of selecting a quant. If the quantity of some line is…
**Current behavior:** In the mobile view for detailed operations of a picking (move lines), the user fills in each field individually instead of selecting a quant. If the quantity of some line is zero and is for a tracked product, the `lot_id` of the line will remain empty while they have encoded some quantity. **Expected behavior:** In this situation, if a quant for the tracked product is available it should be added on the line automatically. **Steps to reproduce:** 1. In mobile, create a manufacturing order to build some product using a component which is tracked via lot 2. Open the MO in shop floor and click on the component line 3. Set the line's quantity to zero and clear the lot -> save 4. Re-open the line and encode some non-zero quantity -> save 5. Observe that the line has quantity but not a lot **Cause of the issue:** On mobile these fields are set individually versus desktop where an actual quant is selected to pull product from, thus this scenario was likely just overlooked. **Fix:** When writing a quantity on a line that previously had a quantity of zero for a tracked product, try to find an available lot to write to the line as well. opw-3919816
This fix resolves a timing issue that occurred when users left a spreadsheet, where thumbnail saving and data snapshots were happening simultaneously and causing unpredictable errors. The fix ensures these operations happen in the correct sequence, making spreadsheet sessions more stable and reliable.
Original PR description
Steps to reproduce (in odoo) - Open a spreadsheet - do something such that there's a least one revisions - leave the spreadsheet => non-deterministic concurrent update because we save the thumbnail and we snapshot at the same time. I'm able to reproduce more when my laptop power setting is on "performance" compared to "balanced" Task: 4080148