You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Problem**:
When `lot['lot_record'].product_id.valid_ean` is `False`, the `final_barcode` variable retains the value from the previous iteration. This leads to incorrect concatenation with the current `lot['name']` when `lot['lot_record'].product_id.tracking == 'lot'`.
**Solution**:
Reset the `final_barcode` variable at the start of each iteration.
**Steps to Reproduce**:
1. Go to Inventory > Settings and enable "Print GS1 Barcodes for Lots & Serial Numbers".
2. Navigate to Inventory > Products > Lots/Serial Numbers.
3. Select all records and click Print > Lot/Serial Number (ZPL).
4. Observe that some barcodes incorrectly include the previous barcode as a prefix.
opw-4437745
closesodoo#192651
Signed-off-by: William Henrotin (whe) <[email protected]>
0 commit comments