Odoo for Pharmaceutical Distribution: Batches, Expiry, FEFO and Credit
Odoo for pharmaceutical distribution: lot expiry tracking, FEFO picking, multi-warehouse stock, recalls, drug licence data and credit control set up.
A pharma wholesaler lives or dies on three things: the right batch on the right order, stock that never expires on the shelf, and customers who pay. Our Odoo implementation services set up Odoo around those three controls from day one.
Related service: Odoo for logistics — shipping, tracking and warehouse operations in one place.
This guide is for owners, operations heads and finance leads at pharma wholesalers and stockists that sell to pharmacies, clinics and hospitals. If you run a hospital store instead, read our guide to hospital inventory management with Odoo lots and expiry.
What does a pharmaceutical distributor need from an ERP?

A pharmaceutical distributor needs pharma ERP controls on batches, expiry, warehouses, customer licences and credit, not just a stock count. Generic pharmaceutical distribution software often covers stock well but leaves accounting and credit to a second system.
Unlike a manufacturer, a wholesaler does not create batches. It receives them from suppliers, stores them across depots and splits them across hundreds of small orders. Every split must stay traceable to the supplier lot.
The table lists the controls buyers usually ask about and how Odoo covers each one.
| Control | What the distributor needs | Odoo standard | Gap to close |
|---|---|---|---|
| Batch tracking | Supplier lot on every receipt and delivery | Lots and serial numbers, required on receipt | None |
| Expiry dates | Expiry, removal and alert dates per lot | Four date fields computed per lot | None |
| FEFO picking | Nearest expiry shipped first | FEFO removal strategy | Train pickers not to override |
| Expired stock | Never ship an expired lot | Alerts, not a hard block | Quarantine location or custom rule |
| Customer licence | Valid drug licence before sale | No native field | Studio fields plus a check |
| Credit control | Stop orders over the limit | Credit limit warning | Approval rule or small module |
How does Odoo lot expiry tracking work?
Odoo lot expiry tracking stores four dates on every lot and computes them from the receipt date and the product settings. You switch on Lots and Serial Numbers, then Expiration Dates, in the Inventory settings.
According to Odoo's expiration dates documentation, only products tracked by lots or serial numbers can carry expiry data. Each product then gets four values in days:
- Expiration Date: days after receipt when the goods should no longer be used.
- Best Before Date: days before expiry when quality starts to drop.
- Removal Date: days before expiry when the lot should leave sellable stock.
- Alert Date: days before expiry when Odoo raises an alert on the lot.
For pharma, the supplier's printed expiry matters more than a computed one. Odoo lets the receiving clerk overwrite the date on the receipt, so set the product defaults as a fallback and capture the real date from the pack.
A receipt cannot be validated without a lot number on tracked products. That single rule stops most untraceable stock from entering the warehouse.
How does FEFO picking work in Odoo?
FEFO in Odoo reserves the lots with the nearest removal date first, so older stock leaves before newer stock. You set it on the storage location or force it on the product category.
Odoo's FEFO removal guide explains the maths. The expiry date is the receipt date plus the expiration days, and the removal date is the expiry date minus the removal days. FEFO sorts on that removal date.
If one lot does not cover the order, Odoo takes the rest from the lot with the next soonest date. When a location and a category disagree, the Force Removal Strategy on the category wins.
- Enable Lots and Serial Numbers and Expiration Dates in Inventory settings.
- Set tracking By Lots on every medicine and medical consumable.
- Fill in the four date fields on each product, or on a template per product family.
- Set Force Removal Strategy to FEFO on the pharma product categories.
- Turn on Display Lots and Serial Numbers on Delivery Slips.
- Test a delivery that spans two lots before go-live.
Our guide to Odoo removal strategies and FEFO valuation covers how FEFO interacts with FIFO or AVCO stock valuation.
Can Odoo block expired or short-dated stock?
Odoo alerts on expired and short-dated stock, but by design it does not block a user from picking an expired lot. Distributors close that gap with a quarantine location, an automated move or a small custom check.
On the Odoo forum, a user asked how to block expired products from being reserved in deliveries. The Odoo answer was that blocking is left out on purpose, because expired stock is still moved for returns, destruction or donation.
For a regulated wholesaler that is not enough. We usually add three controls:
- Quarantine location: a scheduled action moves lots past their removal date to a non-sellable location, so FEFO cannot reserve them.
- Responsible user alert: the product's Responsible field gets a notification and an activity when a lot hits its alert date.
- Minimum shelf life rule: many pharmacy and hospital buyers refuse goods below a set remaining shelf life, so a small module checks remaining days per customer before reservation.
The minimum shelf life rule is the most common custom request we see from distributors. Odoo has no native field for it, so we build it through our Odoo customization services as a light, upgrade-safe module.
How does Odoo run multi-warehouse pharma stock?
Odoo runs every depot, transit location and quarantine area in one database, with routes that move stock between them. A regional distributor sees on-hand and expiry by warehouse in one report.
A typical setup has a central warehouse that receives from manufacturers and resupplies branch depots. Odoo's resupply routes create the transfers automatically, and each lot keeps its expiry date as it moves.
| Location type | Purpose | Odoo setting |
|---|---|---|
| Central warehouse | Receives supplier stock, checks batches | Two or three step receipt |
| Regional depot | Serves local pharmacies and clinics | Resupply route from central |
| Cold chain zone | Temperature-controlled medicines | Storage category and putaway rule |
| Quarantine | Returns, recalls, expired lots | Non-sellable internal location |
| Transit | Stock between depots | Transit location per route |
Cold chain medicines need their own zone. A putaway rule sends any product in the cold chain category to that zone on receipt, so a clerk does not have to remember. Our page on Odoo ERP for logistics shows how routes and fleets fit together.
How do barcodes and GS1 speed up pharma receiving?
GS1 barcodes let a scanner read the product code, lot number and expiry date from one pack label, so nobody types them. Odoo Barcode supports the GS1 nomenclature out of the box.
Odoo's GS1 nomenclature table maps application identifier (01) to the GTIN, (10) to the batch or lot number and (17) to the expiry date. One scan fills all three on the receipt line.
That matters at volume. A distributor receiving thousands of units a day cuts both typing time and wrong-lot errors. See our Odoo barcode scanning guide for scanner choice and picking flows.
How does Odoo handle a pharmaceutical recall?
Odoo handles a recall by tracing the lot forward to every delivery and customer, then moving any remaining stock to quarantine. In Odoo 20 the traceability report shows upstream and downstream lots in one tree.
Per Odoo's lots documentation, the traceability report shows where a lot came from, where it was stored and who it went to. Our Odoo 20 release notes confirm the report now highlights final locations and dims the intermediate ones.
A recall run in Odoo usually follows five steps:
- Open the lot under Inventory, Lots and Serial Numbers, and launch Traceability.
- Export the list of delivery orders and customers that received the lot.
- Move all remaining on-hand quantity of the lot to the quarantine location.
- Create return orders for customers who send stock back.
- Record destruction as a scrap with the lot and a reason.
For the audit trail and mock recall drills, our guide to Odoo traceability for recalls and audits goes deeper.
How should a distributor store drug licence data in Odoo?
Odoo has no native drug licence field, so distributors add licence number, type and validity date to the customer with Studio or properties. A check then stops a sale when the licence is missing or expired.
Licensing rules differ by country, so we do not hard-code one format. Most wholesalers need the customer's licence number, the licence category, the expiry date and a scanned copy in Documents.
The useful part is the check, not the field. A small rule on quotation confirmation compares the licence expiry with today and blocks or routes the order for approval. Suppliers get the same fields, so purchasing only buys from licensed sources.
How does Odoo credit control work for wholesale distribution?
Odoo's native credit limit warns when a customer's balance plus open orders passes the limit, but it does not stop the order. Odoo wholesale distribution teams add an approval rule or a block on top.
As our Odoo credit limit guide explains, the yellow banner shows on quotations and draft invoices, yet the Confirm button still works. In Odoo 19 and 20 the old blocking message on sales warnings is gone.
For pharma wholesale, where pharmacies often buy on 30 to 60 day terms (industry estimate), we usually set up:
- Credit limit per customer: a default limit, with higher limits for hospital groups.
- Approval on overrun: a Studio approval rule so the credit manager confirms orders over the limit.
- Overdue block: a rule that holds deliveries when invoices pass a set number of overdue days.
- Follow-ups: Odoo payment follow-up levels send reminders by email or letter on a schedule.
Odoo pharma ERP by distribution segment
The same Odoo base fits several pharma distribution models, but each segment has a different cost driver. The table shows where we focus the setup.
| Segment | Pain or cost driver | Odoo approach | How iVentureTeam helps |
|---|---|---|---|
| Full-line wholesaler | Thousands of SKUs and lots | Lots, FEFO, GS1 scanning | Design receiving and picking flows |
| Regional stockist | Several depots, small orders | Resupply routes, multi-warehouse | Set up routes and depot reporting |
| Hospital supplier | Tenders and short shelf life rules | Pricelists, custom shelf life check | Build the minimum shelf life module |
| Cold chain distributor | Temperature zones and losses | Storage categories, putaway rules | Map zones and quarantine flows |
| Medical device distributor | Serial numbers and service | Serial tracking, Repairs app | Link serials to service history |
| Importer and C&F agent | Duties and landed costs | Landed costs, transit locations | Set up import costing |
For clinic, lab and pharmacy operations beyond distribution, our page on Odoo ERP for healthcare covers the wider picture.
What does Odoo cost for a pharma distributor?
An Odoo project for a pharma distributor usually lands in our mid-size range, because lots, FEFO, routes and credit rules all need setup. License costs come on top and depend on users.
Our published Odoo implementation cost ranges are $3k to $9k for small projects (4 to 8 weeks), $9k to $27k for mid-size (8 to 14 weeks) and $27k to $150k+ for large ones (12 to 24 weeks). Data migration adds $1.2k to $9k, depending on the source system and years of history.
The biggest cost drivers are the number of SKUs and open lots to migrate, the number of depots, and the custom checks for licences and shelf life. For a first number, try the Odoo project estimate tool.
How iVentureTeam helps with Odoo for pharmaceutical distribution

iVentureTeam sets up Odoo for pharmaceutical distribution around batches, expiry, depots and credit, then adds the checks Odoo leaves out. We have delivered 150+ ERP projects across 35+ countries with 40+ Odoo specialists, led by a consultant with 13+ years in Odoo.
- Process mapping: receiving, FEFO picking, returns, recalls and credit flows mapped before configuration.
- Inventory setup: lots, expiry dates, FEFO, GS1 barcodes, quarantine and multi-warehouse routes.
- Custom checks: drug licence validity, minimum shelf life per customer and credit blocks as light modules.
- Data migration: open lots with real expiry dates, customers, licences and open invoices from your old system.
- Training and go-live: warehouse and credit teams trained on real lots, with a mock recall before cutover.
The bottom line on Odoo for pharmaceutical distribution
Odoo is a strong fit for pharmaceutical distributors that want batches, FEFO, depots and credit in one system, as long as you plan the gaps. The standard product covers tracking and alerts; licence checks, shelf life rules and hard blocks need configuration.
Start with your receiving and picking flow, test FEFO and a mock recall on real lots, and decide early how strict your credit and expiry controls must be. Those choices shape the rest of the project.
Ready to set up batch, expiry and credit control in Odoo?

Talk to a team that has built FEFO, recall and credit controls for distributors. Plan your pharma distribution setup with our Odoo team, call +91-90235-15208, or email business@iventureteam.com.
Frequently Asked Questions
Is Odoo suitable for pharmaceutical distribution?
+
Yes for most wholesalers. Odoo covers lots, expiry dates, FEFO, multi-warehouse stock, credit limits and recall tracing in one database. Licence checks and minimum shelf life rules need light customization.
Does Odoo support FEFO?
+
Yes. Odoo has a First Expiry First Out removal strategy that reserves the lot with the nearest removal date first. You set it on the storage location or force it on the product category.
Can Odoo stop us from shipping expired medicines?
+
Not by default. Odoo raises alerts and activities on expiring lots but lets users pick them. Most distributors add a quarantine move or a custom check that blocks lots past their removal date.
How does Odoo track batch numbers from suppliers?
+
Products tracked by lots need a lot number before a receipt can be validated. With GS1 barcodes, one scan reads the GTIN, lot and expiry date from the supplier's label onto the receipt.
Can Odoo handle a product recall?
+
Yes. The traceability report lists every delivery and customer that received a lot, and Odoo 20 shows upstream and downstream lots in one view. You then quarantine the remaining stock and process returns.
Does Odoo have a drug licence field for customers?
+
No. Distributors add licence number, type and expiry date with Studio or properties, store a scanned copy in Documents, and add a rule that blocks sales when the licence has expired.
Does Odoo block orders over a customer's credit limit?
+
No, it warns. The native credit limit shows a banner on quotations and draft invoices but still allows confirmation. A Studio approval rule or small module turns the warning into a block.
Can Odoo manage several warehouses and depots?
+
Yes. Odoo runs many warehouses in one database, with resupply routes from a central warehouse to depots. Each lot keeps its expiry date as it moves between locations.
How long does an Odoo rollout take for a pharma distributor?
+
Most fall in our mid-size range of 8 to 14 weeks. Many SKUs and depots, heavy migration of open lots or several custom checks can push a project into the large range.
Free industry walkthrough
Using Odoo for Pharmaceutical Distribution?
We walk you through how Odoo handles a business like yours and what to set up first, based on projects we've delivered.
Free, with no obligation. A senior consultant replies within 12 business hours.
Free Odoo tools
All tools- Odoo Health CheckVersion, modules, findings and upgrade cost
- Odoo App SelectorWhich apps you need, by industry
- Odoo Project EstimateIndicative cost and timeline in minutes
- Odoo Implementation Cost CalculatorImplementation cost and timeline, in minutes
- Odoo Migration Cost CalculatorVersion jump or legacy ERP, priced in minutes
Continue reading
Odoo Inventory Accuracy: Fix Stock Discrepancies with Cycle Counts
Improve Odoo inventory accuracy: causes of stock discrepancies, negative stock fixes, cycle counts by location, blind barcode counts and Odoo 20 tools.
Odoo Warehouse Management System: WMS Guide for Odoo 19 and 20
Set up the Odoo warehouse management system in Odoo 19 and 20: locations, putaway rules, routes, replenishment, barcode picking, cycle counts and 3PL limits.
Odoo Inventory Reports: Stock, Valuation, Aging and Forecast in 19/20
Odoo inventory reports in Odoo 19 and 20: where the stock, valuation, aging and forecast reports sit, what each answers, and when to build custom ones.
