Daily updates from Odoo
Wednesday, March 19, 2025
1 change · 18.0
New functionality added to Odoo
Adds a test covering barcode scans that include many serial numbers at once. This helps ensure slow mobile connections do not cause excessive delays when warehouse teams scan large batches in the Barcode app.
Original PR description
### To test the flow: Run the test with debug = True and in the network tab of the browser set throtlling to 3G while the debugger of the first step of the tour is on. ### Steps to reproduce: 1.…
### To test the flow: Run the test with debug = True and in the network tab of the browser set throtlling to 3G while the debugger of the first step of the tour is on. ### Steps to reproduce: 1. Create a storable product tracked by SN. 2. Create a delivery order of 1000 units. 3. In Inventory > Operations Types, for the Delivery Orders type, check "Create New" under Lot/Serial Number. 4. Open the barcode app 5. Scan a QR code containing 100 serial numbers. > makes far too many rpc calls taking ages to resolve in 3G or slow 4G ### Cause of the perf issue: You will observe that the barcode scanned is treated by the `processBarcode`, generates a list of 100 valid barcodes and that each of these is then processed individually here: https://github.com/odoo/enterprise/blob/b429e4da99edc73b5cf451c05dba120dde5b3895/stock_barcode/static/src/models/barcode_model.js#L650-L674 However, each individual `this._processBarcode` will lead to two rpc calls, one during the `_getMissingRecord` of the `prefilled_owner_package_stock_barcode`. GL Steve <3 opw-4410797