Reassign lot/serial numbers¶
Changing a product’s tracking settings to use lots or serial numbers, after storing products in Odoo without them, can lead to inconsistent records. Follow this documentation to learn how to use an inventory adjustment to assign lot or serial numbers to products that were not originally assigned lots.
![Warning message: products in stock have no lot/serial number.](https://www.odoo.com/documentation/17.0/_images/warning.png)
Note
This document outlines the process of using two inventory adjustments: one to remove incorrect records without lot numbers, and another to save the quantities with the lot numbers.
Change on-hand quantity to zero¶
To change the product’s settings to track by lots or serial numbers, begin by navigating to
, and select the intended product.Next, click the product’s On Hand smart button to open the Update Quantity page. In the On Hand Quantity column, change the value to zero.
Note
If the product is stored in multiple locations, make sure the total on hand quantity at all locations is zero.
![Show the Inventory Adjustments model, highlighting the "On Hand Quantity" field.](https://www.odoo.com/documentation/17.0/_images/remove-quant.png)
Change traceability setting¶
Return to the product form (Inventory tab. In the Traceability section, change the Tracking option from No Tracking to By Lots or By Unique Serial Number.
), and switch to theSee also
![Enable lots and serial numbers.](https://www.odoo.com/documentation/17.0/_images/tracking.png)
Restore on-hand quantity¶
After manually changing the on-hand quantity to zero and changing the Tracking setting to lots or serial numbers, restore the quantities by clicking the On Hand smart button from the desired product form.
On the Update Quantity page, because the on-hand quantity had been previously changed to zero, a No Stock On Hand warning appears on the page. From here, click the New button in the top-left corner. Doing so reveals a new, modifiable line on the Update Quantity page. Then, input a desired lot number in the Lot/Serial Number field, and adjust the On Hand Quantity to its original value.
See also
![Fill in the "Lot/Serial Number" and "On Hand Quantity" field.](https://www.odoo.com/documentation/17.0/_images/update-quantity.png)
Tip
To find the original quantity, and adjust the On Hand Quantity accordingly, after assigning a new lot or serial number, click the (pencil) icon in the On Hand Quantity column. Then, click the History button on the far-right.
![Show the "History" button on the Inventory Adjustments page.](https://www.odoo.com/documentation/17.0/_images/adjustment.png)
The inventory adjustment that changed the on-hand quantity to zero is displayed in the Quantity field.