How Do Lot, Serial and Expiry Tracking Work in Odoo for Pharma?
Nishant Patel
12/4/2026
odoo

How Do Lot, Serial and Expiry Tracking Work in Odoo for Pharma?

Quick answer: Odoo can track medicines and similar products by lot or serial number, store an expiry date on that identity, and use that data at receipt, production and dispatch. For pharma, you should decide FEFO picking, quarantine locations and a recall report before go-live. Quality checks and distribution flows can be added once this identity is trusted.

What is the difference between a lot and a serial number in Odoo?

A lot, sometimes called a batch, is a quantity of the same product that shares one identity, usually produced or received together. A serial number identifies a single unit. Expiry, or a best-before date, is stored on that lot or serial record, not only in a remark on the product.

Pharma plants and packing units typically need lots for tablets, capsules, liquids and packing materials, and may need serials for certain devices or high-value packs. The same product should not switch between no tracking and lot tracking casually after stock exists. Decide the rule when you create the product.

Inventory and manufacturing tools in recent Odoo versions are described in Odoo 20 inventory and Odoo 20 manufacturing. This article is about identity, expiry and recall, not a feature recap.

Which facts should you lock before the first receipt?

  • Lot or serial: the identity you will print, store and report. Do not treat a supplier's batch only as a note if you must recall it later.

  • Expiry date: stored on the lot or serial, and visible to stores and dispatch.

  • Internal lot versus supplier lot: if you assign your own number, keep the supplier's number in a dedicated field so a recall can use either.

  • Quarantine location: incoming or in-process material that is not yet released should not sit in the same location as saleable stock.

  • Released and rejected statuses: a simple, written rule for when a lot may be delivered.

  • FEFO or FIFO: first-expiry-first-out is the usual dispatch rule for dated goods. Configure reservation so users are not free to pick the convenient pallet.

If these rules are not written down, two supervisors will invent two systems, and the ERP will only record the argument.

How does the identity move through receipt, production and dispatch?

On receipt, the store should record the lot or serial, the quantity, the expiry and the location. If a quality check is required, the lot should enter quarantine first and move to a released location only after the check. A later article in this calendar will cover quality alerts in more detail. For now, the important point is that a failed lot must not be reservable for a customer order.

In production, components with lots should be consumed by lot, and the finished pack should receive a new lot and expiry at output. If you cannot say which component lot went into which finished lot, a recall will stop at the factory door.

On dispatch, reservation should prefer the earliest expiry that is still valid, unless a customer or a quality hold requires something else. Deliveries should print the lot and expiry the truck is actually carrying. GST invoices and e-way bills describe the goods movement. The lot list is what lets you answer a market complaint.

How do you handle expiry, near-expiry and recalls?

Near-expiry stock needs a report and a decision: sell under a written rule, transfer, return to a vendor, or destroy. Destruction should be a stock move with a reason, not a silent quantity change. Expired stock should be blocked from delivery, not only highlighted in a spreadsheet after the event.

A recall starts from a lot or serial, then lists receipts, work orders, deliveries and customers that used it. If that report cannot be produced from Odoo, the tracking is not yet real. Test a mock recall in user acceptance testing with a real sample lot, including a component that was consumed into a finished pack.

Returns of expired or damaged goods need a quality location and a credit-note path, especially for distributors. A later article will look at pharma distribution in more depth. Manufacturing and distribution can share the same lot masters if you design them once.

What should stay out of the first phase?

You do not have to encode every regulatory exhibit on day one, and this article does not claim a certification. You do have to get identity, expiry, quarantine, FEFO and a recall report right, because those are how the rest of the process stays honest. Shop-floor device links, artwork versions and specialised studies are later conversations.

Peanut Square, an Odoo Learning Partner in Ahmedabad, founded in 2017, has developed 90 Odoo modules and delivered 100+ projects, including work with pharmaceutical operations. The team includes an Odoo-certified consultant. Process design for regulated products should still be reviewed with your quality and compliance owners.

Train stores, production and dispatch on the same sample lot: receive it, quarantine it, release it, consume part of it in a work order, and deliver the rest. If any of those steps loses the lot number or the expiry, fix the screens and the habit before you load opening stock. Opening stock without lots, when the product is lot-tracked, is how the first week of go-live becomes a cleanup project.

FAQ

Can Odoo store expiry dates on batches?

Yes. Expiry belongs on the lot or serial record. The product template should require tracking, and dispatch should be able to see the date when reserving stock.

What is FEFO, and can Odoo use it?

FEFO means first expiry, first out. Odoo can be set up so reservation prefers earlier expiry dates. Users should not routinely override that rule without a recorded reason.

Do we need serial numbers for every tablet pack?

Usually not. Lots are the normal identity for bulk packed medicines. Serials are for items you must track unit by unit. Mixing both without a rule creates extra work and little extra control.

How do we recall a batch that was used in production?

You need component lots on the consumption moves and a finished lot on the output. A mock recall in testing should trace both directions: from a component lot to finished deliveries, and from a finished lot back to components.

Can we start without quarantine locations?

You can, but you should not if release is a real quality step. Mixing untested and released stock in one location makes every delivery a manual judgement.

Who can help us configure this in Odoo?

Peanut Square LLP is an Odoo Learning Partner based in Ahmedabad. Book a consultation if you want lot, expiry and recall reporting designed around how your plant actually releases goods.

About the author

Nishant Patel is CTO of Peanut Square LLP, an Odoo Learning Partner based in Ahmedabad, Gujarat. The firm was founded in 2017, has developed 90 Odoo modules, and has delivered 100+ projects. The team includes an Odoo-certified consultant.

Updated: 4 December 2026 (IST)

Talk to Peanut Square

If you want help with this in Odoo, book a free project consultation at https://www.peanutsquare.com/en/contact, write to business@peanutsquare.com, or call +91 94296 94521.