Odoo lot and serial number tracking for food, pharma and electronics

Odoo can record lots, serial numbers and expiration dates on stock movements and manufacturing orders. This page explains which tracking method fits each product, how to configure it, and what to confirm before the build starts.

On this page

How Odoo lot and serial number tracking supports recalls and dated stock

A warehouse or plant team that has to trace finished goods back to the supplier lots they came from, and forward to the customers who received them, needs Odoo Inventory to record that link at every movement. Odoo can attach a lot number or serial number to products on receipts, internal transfers, manufacturing orders and deliveries, so the stock moves carry the identifier from one step to the next. Lots group interchangeable units received together, such as a batch of ingredients or a production run of components. Serial numbers identify one unit each, which is the usual choice for electronics or equipment where a single device may be recalled. Expiration dates and removal dates add a time dimension: they tell the system when stock should be picked first or taken out of sale. A team needs these fields when a product's regulatory, safety or warranty obligations depend on knowing which exact units went where. This page is written to help you make those configuration decisions for food, pharma and electronics. It does not certify compliance with any regulation, and your quality or regulatory staff should confirm what your sector requires.

The decisions that matter most come before go-live. Decide, product by product, whether tracking is by lot, by serial number or not at all, because changing the tracking type after stock exists can require adjusting or moving existing quantities. Decide which operations must capture the identifier, and whether receipts from suppliers must reference the supplier's own lot codes. Decide which dates drive behavior: an expiration date, a best-before style removal date and an alert date can each play a different role, and your team should agree in writing which one stops a product from being sold. Confirm the exact date fields and their behavior in your Odoo version with a test database before you rely on them, since the Inventory settings that expose these options have changed between releases. Ask the implementation partner to show a trace from one finished unit back to its receipt and forward to its delivery, using a test recall. That exercise tests the data model, the user habits and the reports at once, and it shows where manual steps still break the chain.

Recall readiness depends on people as much as on configuration. Warehouse operators need to scan or select the lot or serial at receipt and at picking, and supervisors need a clear rule for what happens when a barcode is missing. Quality staff need access to the traceability reports and a documented procedure for quarantining stock, and that procedure should name who can reserve or block a lot. Plan for the cases Odoo will not solve on its own: stock sold through channels outside Odoo, goods returned without an identifier and supplier batches that arrive without a usable code. If your organization must meet the electronic record and signature expectations of 21 CFR Part 11 Electronic records; electronic signatures, the audit trail design and approval steps are a separate workstream to scope with your quality team. Ask for a written list of which traceability reports, dates and access rights are in scope before any build work starts.

Odoo lot and serial number tracking options by product type

This table compares tracking by lot, by serial number, and by expiration or removal dates in Odoo, showing what each records, typical products, data entry effort, and effect on picking and reporting. Use it to choose the method per product before receipts start, since changing it later requires a planned stock adjustment.

OptionWhat it recordsTypical productsData entry at receipt and deliveryEffect on picking and reporting
UntrackedQuantity only, with no batch or unit identityCommodity consumables and items where traceability has no regulatory or safety roleLowest effort: enter quantities onlyPicking follows general removal rules; recall reports cannot isolate a batch
Lot trackingA batch or lot number shared by many units received togetherBulk ingredients, batched medicines, chemicals, paint or other produced batchesEnter or scan one lot per receipt line; deliveries must select the lotSupports lot-level stock, removal rules and traceability reports for recalls
Serial number trackingOne unique number per unitIndividually identified devices, electronics, equipment with warranty or service historyHighest effort: one serial per unit at receipt and delivery, usually scannedEach unit is picked once and traced individually; quantities are always one per serial
Expiration datesA date on lot or serial records, set from the product's shelf life settingsFood, pharmaceuticals, cosmetics and other goods with a use-by limitUsually captured with the lot at receipt; confirm the required date fields in your versionEnables expiry-based removal ordering such as FEFO and expiry alerts on stock
Removal and alert datesDates that control when stock should leave the warehouse or trigger a warningGoods with a removal window shorter than the expiry date, such as products sold before their last usable dayCaptured with the lot record; confirm which dates your version calculates from shelf lifeDrives which lots are picked first and which stock appears in expiry reports
Tracking change after stock existsExisting quantities that were received without the new tracking detailAny product whose method is switched mid-lifeRequires counting and assigning lots or serials to on-hand stockPlan a stock adjustment and confirm the exact steps for your Odoo version before switching

How tracking data moves from receipt to recall report

The flow starts at supplier receipt, where the lot or serial number is captured and an expiration date can be recorded on the stock. Stock then moves through storage locations and internal transfers, keeping the same tracking identity at each step. At the manufacturing order, component lots are consumed and finished lots are produced, which links inputs to outputs. FEFO picking chooses stock by removal date at the point of pick. Check each hand-off against your own process, because a missed capture at receipt or a missed link at production breaks the recall report.

Tracking identifiers and dates moving from receipt through production to a recall query.

How food, pharma and electronics teams set up tracking differently

Food operations usually trace by lot, because one supplier delivery or one production run is handled as a group. The core questions are which supplier lot went into which finished batch, and when each lot must leave stock. Expiration and best-before dates are often different things, so the setup should record which one applies to each product and how the warehouse acts on it.

  • Supplier lot codes: Record the supplier's lot number on receipt so it stays attached to the stock moves that follow.
  • Expiration and best-before dates: Confirm with your quality team which date drives removal and which only informs the customer, then set the product fields to match.
  • FEFO-driven picks: Configure removal by expiration date so the earliest-expiring stock in a location is picked first.
  • Lot-based production: Link finished lots to the component lots consumed in manufacturing so a supplier recall can be traced forward to customers.
  • Quarantine handling: Decide how lots on hold are kept out of picks until a release decision is recorded.

Before relying on this pattern, confirm with your quality team which dates the regulator and your customers expect, and test a mock recall from a single supplier lot.

Odoo lot and serial number tracking setup steps and checks

This sequence takes a configured Odoo Inventory from tracking settings through a test receipt, delivery and manufacturing order to a recall-style traceability query, so each control is proven before go-live.

  1. Enable tracking and expiration settings

    An administrator turns on lot and serial number tracking and expiration dates in the Inventory settings for the edition in use, and confirms that the Manufacturing app is also available if production traceability is needed. Confirm with your Odoo partner or Odoo documentation which of these options your edition and version expose, since Community and Enterprise differ in some Inventory and Manufacturing features. Check: the product form shows a Tracking field and expiration fields are visible on products before any product is changed.

  2. Define tracking for each product

    The inventory owner sets the tracking method on each product as By Lots, By Unique Serial Number or No Tracking, based on whether units are interchangeable within a batch or must be followed individually. Products that expire should also have their expiration settings enabled at this point, so that receipts ask for a date. Check: a sample of products from each category, such as a food item, a pharma item and an electronic assembly, shows the tracking method you intended and a blank tracking field is not left on any dated or serialized item.

  3. Set lot and serial naming rules

    The operations lead agrees on a naming convention for lot and serial numbers, including whether they come from the supplier, are generated by Odoo on receipt, or follow an internal scheme that encodes product, line and date. Record the convention in a controlled document and configure sequences or receipt practices to match it. Confirm with your quality team that the convention can carry the identifiers your recall procedure will need. Check: a test receipt of one lot and one serial produces identifiers that match the written convention and that no two products share an identifier by accident.

  4. Configure expiration and removal dates

    Inventory administrators set the expiration, removal, alert and best-before date fields on the products that need them, and define the number of days before each date at which alerts should appear, using the product settings. Assign the people who receive the alerts and confirm which Odoo activity or notification mechanism your version uses for these reminders. Check: a test lot received with a near-term expiration date appears in the expiration report and triggers the configured alert for the responsible user.

  5. Set storage locations and removal strategy

    The warehouse manager creates the storage locations for dated and serialized stock and sets the removal strategy on the product category or product, choosing first expired first out (FEFO) for perishable goods or a lot-based strategy for other tracked goods. Keep quarantine or hold locations separate so that blocked stock cannot be picked. Check: when two lots with different expiration dates are in stock, the reservation for a delivery picks the earlier-expiring lot first and the quarantine location is not offered for picking.

  6. Run a test receipt through delivery

    The receiving team records a test purchase receipt with lot numbers, serial numbers and expiration dates, then validates it, reserves stock on a test customer delivery and validates the delivery with the correct lots. Use test data and a test database where possible so that live stock is not affected. Check: the delivery order shows the lot or serial numbers that were actually shipped, and the stock move history records each receipt and delivery against the same identifiers.

  7. Run a test manufacturing order

    The production planner runs a test manufacturing order that consumes a tracked component and produces a tracked finished good, recording the component lot and the finished lot or serial on the work order. This step checks whether traceability carries through production and whether finished goods receive the identifiers your process requires. Check: the manufacturing order shows the component lots consumed and the finished product lot or serial produced, and both are visible from the finished product's traceability view.

  8. Run a recall-style traceability query

    The quality lead starts from a single finished lot or serial and traces it forward to customer deliveries and backward to supplier receipts and component lots, using Odoo's traceability reports. Document the time taken and any gaps, and confirm the output contains the information your recall procedure needs, such as customer, quantity and date. Check: the report returns every customer delivery and every upstream receipt linked to the test lot, and a printed or exported version lists the same records, so the process can be repeated during a real recall exercise.

How lot and serial tracking carries through manufacturing

The link between component lots and finished-good lots or serials is the part of the traceability chain that recall investigations depend on most, so confirm early how component consumption is recorded in your Odoo version and edition. Determine whether the manufacturing order consumes components automatically when it is completed or whether operators record consumption manually, including which lot or serial numbers they scan for each component. Where a component is tracked by lot, the consumed lot must be captured on the manufacturing order, not just the stock quantity. Test this with a real component lot before go-live, because a gap here is invisible until someone asks which finished units contain a suspect ingredient.

Partial consumption, rework and scrap each need a deliberate rule. If a lot is only partly used on a production run, the remaining quantity should stay in its original lot with its expiration date intact, and the team should confirm that the system splits the lot as expected. Rework usually means a unit is opened, corrected and returned to stock, so decide whether it keeps its original serial number and whether its component history is extended or restarted. Scrapped material should be recorded with the lot it came from, so the write-off is traceable and does not appear as untracked stock loss.

Ask your implementation team to walk through these cases with test data and write down the expected result for each: full consumption, partial consumption, a rework loop, a scrap event and a finished product built from two component lots. Confirm which traceability reports in your version show component-to-finished links in both directions, and do not assume a report layout until it has been demonstrated on your own records. Keep the test data and results as evidence for internal reviews and for any regulator or customer audit that asks how the process works.

Access, audit and data controls for traced stock

Traceability records are only useful if they stay accurate and can be explained later. The cards below cover who may change lot and serial data, how record-level limits protect dated and quarantined stock, and how audit trails, backups and bulk-change controls support a recall investigation.

Limit who creates and edits lots

Lot and serial records are created at receipt or production, and a wrong edit can break the link between a finished product and its inputs. Decide which groups may create, rename, merge or delete lot numbers, and keep deletion to a small administrator group. Check the access rights on the lot and serial models for each warehouse and plant role, and test them with a user from each group before go-live. Confirm the exact group names and access defaults in your Odoo version.

Odoo on-premise docs

Protect dated and quarantined stock

Expired or quarantined lots should not be picked, moved or consumed by ordinary warehouse users. Use record rules and location-based restrictions so that only quality or compliance roles can move stock out of quarantine or change its removal date. Test the rules with a picking user against a lot in a blocked location, because a rule that looks correct on paper can still allow a move through a different screen. Confirm which models and fields your version's rules can restrict.

Keep the stock move audit trail

Recall investigations depend on knowing who changed a lot, when, and from which value. Chatter tracking on stock moves and lot records gives a readable history, but tracked fields must be chosen deliberately, and messages are not a substitute for a database backup. Decide how long move history and chatter must be kept, and confirm whether any purge or archive job touches them. Ask your implementation partner to document which fields are tracked in your build.

Back up the trace database

Traceability records live in the same PostgreSQL database as sales, purchasing and manufacturing, so a corrupted or lost database removes the trace chain with it. Schedule regular backups, store copies outside the production host, and run restore tests on a separate server to prove the lot history can be recovered. Record how long a restore takes, since that figure matters when a recall has a deadline. Confirm your backup tooling and retention with your database team.

Control mass edits and imports

Spreadsheet imports and bulk edits can overwrite expiration dates or assign one lot number to many products in a few clicks. Restrict import rights to named users, require a validation copy in a staging database before any production import, and review a sample of imported lots against supplier certificates. Ask for a log of who ran each import and which file was used. Confirm how your version reports import errors and whether partial imports are rolled back.

Separate test and production data

Staging copies used to rehearse a recall or test a lot migration must not expose real batch data to people who should not see it, nor send notifications to customers or suppliers. Create test copies with the database duplication and neutralization steps Odoo documents, and check that outgoing email and scheduled actions are disabled in the copy. Assign a named owner for each copy and remove it when the test ends.

What Odoo lot and serial tracking costs and how long setup takes

What drives the cost of setting up lot and serial tracking in Odoo?

The main cost drivers are the number of tracked products, how many distinct label formats your suppliers use, the sectors whose rules apply (food, pharma or electronics each add different checks), the barcode hardware you need to support, and how much historical stock must be re-tracked. Integration with quality checks or manufacturing orders adds scope because lot and serial data must flow through those steps correctly. No fixed figure applies to every business, so ask a partner to break the quote into these drivers so you can see which ones move the price.

How long does Odoo lot and serial number setup usually take?

Duration depends on the same drivers as cost, plus how quickly your team can provide product master data, label samples and sign-off on quality rules. Historical stock re-tracking and testing with real receipts and deliveries often take more time than the configuration itself. Ask the partner to show the phases, the test cases they will run and which dependencies sit on your side, and to state the duration in the written scope rather than as a general estimate.

Can our own team configure lot, serial and expiration tracking without a partner?

Many teams can enable tracking on products and configure removal strategies themselves, especially if they have an Odoo administrator and a clear picture of their traceability rules. The harder parts are usually consistent lot naming, correct handling of supplier lots during receipt, expiration logic tied to the right dates, and recall reports that you can trust under audit. Assess your in-house skills against those items. A partner can review your design, build the parts your team lacks and hand over documented steps.

What does our team need to provide before lot tracking work starts?

Expect to provide a clean product master list with units of measure and tracking settings, sample supplier labels and barcodes, written quality or traceability rules for each product family, access to a test database, and test stock that covers receipts, transfers, manufacturing and returns. Named people who can approve lot naming and expiration policies also matter, because decisions made late tend to force rework. Ask the partner to confirm this list in writing so gaps are visible before the build.

What costs are one-time and what costs recur after go-live?

One-time costs cover design, configuration, data re-tracking, label and barcode setup, integration work and testing. Recurring work includes maintaining rules when you add products or suppliers, updating label formats, reviewing traceability reports after each Odoo upgrade, and retesting recall reports when the database or modules change. Ask whether the quote includes a period of post-go-live support and what a retainer for ongoing checks would cover, stated separately from the build.

Does lot and serial tracking depend on the Odoo Community or Enterprise edition?

This is a question to confirm before you buy, because edition availability for specific tracking, barcode and reporting features can change between Odoo versions. Check the current feature list for your target version against the Odoo pricing and documentation, and ask any partner to state in writing which features your design needs and which edition each one requires. Note that Odoo's pricing page places some capabilities only in the Custom plan, so confirm the hosting and plan requirements alongside the feature list.

What should a written quote for lot and serial tracking include?

A useful quote lists the in-scope products and tracking types, the sectors and rules covered, the label and barcode formats, the hardware to be supported, the data re-tracking approach and its volume, integrations with manufacturing or quality, the test plan and acceptance criteria, the handover documents, and the post-go-live support terms. It should also name each deliverable, the client responsibilities and the assumptions behind the schedule. If a line item is not described in these terms, ask for it to be added before you compare quotes.

How do upgrades affect lot and serial tracking after setup?

Upgrades can change how stock moves, reports and barcode screens behave, so traceability reports and expiration logic should be retested each time the version changes. Odoo's upgrade documentation covers the upgrade path, and Odoo Online and Odoo.sh require major upgrades on a fixed cycle. Ask the partner how they will test lot reports on an upgraded test database before production and whether that testing is included in the support scope or priced separately.

Limits to confirm in your environment before you configure tracking

Tracking behavior in Odoo depends on the edition, the version and the regulatory context of the plant. The cards below list what to confirm before anyone creates lots, serial numbers or expiration rules, because a later change of version or edition can alter what the configuration does.

Edition and module availability

Confirm which tracking features your edition includes before you design the process. Odoo's pricing page places multi-company, external API access and custom modules only in the Custom plan, and that plan is the only one that can run on Odoo.sh or on-premise. Ask the vendor or your partner to map each tracking capability you need to the edition you license, and record the answer in the scope document.

Odoo pricing

Version and support window

Check which Odoo version you will run and when standard support ends for it. Odoo 18.0 standard support runs until September 2027, Odoo 19.0 until September 2028 and Odoo 20.0 until September 2029. Security patches are only provided during standard support, so a tracking design built on a version near its end date needs an upgrade plan with it.

Support docs

Mandatory major upgrades

On Odoo Online and Odoo.sh, major version upgrades are mandatory every two years. Lot and serial records, expiration settings and removal strategies all live in the database, so each upgrade must be tested against your tracked stock on an upgraded test database before production. Ask how your lot naming, expiration fields and removal rules will be checked during each upgrade cycle.

Mandatory upgrade interval
Two years
Upgrade docs

Expiration fields and FEFO behavior

Confirm how your chosen version handles expiration dates, removal dates and FEFO picking before you load stock. Test a lot received with a short expiration window, reserve it against an order and check which quant the picker is offered. Record the exact field names and any version differences in the configuration notes, because reports and recall queries depend on them.

Retro-tracking historical stock

Decide whether stock already on hand can be assigned lots or serial numbers after go-live. Tracking applied to existing quantities usually requires an adjustment, and the adjustment changes valuation and traceability history. Ask whether your team can accept a cutoff date where earlier stock stays untracked, and document how that gap will appear in recall reports.

Regulatory scope of the plant

Confirm whether a regulator applies to the plant before you define the evidence the system must produce. Pharma sites may fall under 21 CFR Part 11 for electronic records and signatures. EU manufacturers in NIS2 Annex II sectors, including NACE divisions 26 to 30, should confirm their incident reporting duties and how traceability data supports them. Legal and quality teams should make this determination, not the implementation partner.

Part 11 text

How DeployOpen scopes and delivers lot and serial tracking

DeployOpen starts lot, serial number and expiration date tracking in Odoo with a written scope that names the products, locations and recall questions the system must answer. We then configure, test and document the traceability setup inside infrastructure you control, so your quality and compliance teams can review it before go-live.

How we scope

  • Inventory of tracked products, stating which items need lots, which need serial numbers and which need expiration dates
  • Map of receiving, storage, picking, manufacturing and shipping steps where traceability records must be created
  • Confirmation of the Odoo edition and hosting type, since your plan determines which apps and custom modules are available
  • Written scope, deliverables and timeline agreed before work starts, with ongoing support available as a retainer

How we build

  • Configure tracking settings per product and removal strategy per location or category, following the agreed process map
  • Set up expiration date rules, removal dates and FEFO picking, then test them against sample receipts and deliveries
  • Build traceability reports for recall questions and test them against a known lot chain through manufacturing
  • Review custom modules against your Odoo version so the tracking logic survives future upgrades

How we hand over

  • Written configuration record covering products, tracking types, removal settings and the users allowed to change them
  • Test scripts and results showing receipt, transfer, production and recall scenarios passed in a non-production copy
  • Operating procedure for receiving, lot numbering, serial capture and recall reporting, written for warehouse and quality staff
  • Walkthrough sessions with your warehouse, quality and compliance teams, with the handover pack confirmed in writing

How we support

  • Retainer options for configuration changes, new products and report updates as your catalog and processes change
  • Upgrade planning that tests lot and serial behavior in an upgraded test database before production
  • Periodic recall drills on your own data, with findings and fixes documented for your records
  • Support scope confirmed in writing, so you know which Odoo edition and support window applies to your setup

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.