Na belgijskim rynku farmaceutycznym wygranie zamówienia to dopiero połowa sprzedaży. Jeśli sprzedajesz aptekom przez hurtownię farmaceutyczną, zamówienie, które właśnie domknął Twój handlowiec, musi jeszcze dotrzeć do hurtowni jako zamówienie transferowe, we właściwym formacie, do właściwego oddziału dystrybucyjnego, z właściwymi kodami produktów. W wielu firmach ta ostatnia mila to człowiek przepisujący wieczorem zamówienia do portalu.
We built an Odoo module that handles that last mile automatically. It has been moving our client's transfer orders to the wholesaler for years, and it shows well what the word "integration" actually means.
What is a transfer order?
A transfer order is a standard mechanism for selling through a pharmaceutical wholesaler. The pharmacy buys from you, usually on terms you negotiated, but the physical delivery and wholesale logistics run through its wholesaler. You send the order to the wholesaler, and the wholesaler delivers it on its normal route.
Good for everyone: the pharmacy gets your terms and next-day delivery, the wholesaler keeps its logistics role, and you sell without your own fleet. The catch is administrative: every transaction becomes a data exchange between your system and the wholesaler's system.
From closed sale to sent order, without retyping
Here is the flow the module gives the sales team on Odoo:
- One click on the sale order. A confirmed sale order becomes a transfer order document. Products, quantities, discount and pharmacy data carry over automatically, together with the CNK codes the Belgian pharmaceutical market runs on.
- The right file to the right place. The module generates the order file in the wholesaler's format and sends it over FTP on schedule, split by distribution branch. Branch data ships together with the module.
- Replies come back on their own. The wholesaler's response files are picked up automatically, parsed line by line and matched to the lines of your transfer order.
- Ordered versus delivered, reconciled line by line. Every line compares the quantity sent with the quantity confirmed by the wholesaler. Lines delivered in full close themselves. Partial deliveries mark the order as partially fulfilled, with the wholesaler's information codes, so the team sees right away which pharmacies did not get their full order and why.
- Everything is logged. Every file in both directions is archived as an attachment with a status trail. A failed transmission does not disappear overnight: the record gets flagged with a reason, right on the view.
Small features that give away real production use
This module was not built for a demo. It grew up in production, and it shows:
- Transfer orders have their own document lifecycle in Odoo (draft, sent, fulfilled, partially fulfilled, acknowledgement), separate from sale orders, so the wholesale flow does not clutter direct sales statistics.
- Order lines check live available stock, so the rep already sees at data entry whether the promise is realistic.
- Transfer orders can be previewed and emailed from ready-made templates, and each one is linked to the rep who owns the account.
- The interface is translated into Dutch, French, German, English and Spanish, because Belgian sales teams rarely speak just one language.
Years in production
We built this integration first on Odoo 13 and carried it through every update since. Today it runs on Odoo 18. The module still holds compatibility layers from those migrations, and that is exactly what long-lived business software looks like: it evolves instead of being rewritten from scratch every version.
FAQ
What is a transfer order in pharmaceutical distribution?
It is an order the pharmacy places with the manufacturer or the lab, which is delivered and settled through the pharmacy's wholesaler. The manufacturer passes the order to the wholesaler, and the wholesaler delivers it through its normal logistics.
Czy moduł działa z innymi hurtowniami?
It speaks the transfer order interface of our client's wholesale network, with distribution branch data included. The same architecture (order goes out, reply comes back, line by line reconciliation) can be adapted to other wholesalers.
How do we know what was actually delivered?
The wholesaler's response files are parsed line by line. Every transfer order line stores the ordered quantity, the delivered quantity and the wholesaler's information code, and the order status updates automatically to fulfilled or partially fulfilled.
Which product codes are supported?
Order lines carry the CNK code from the product record, the national identification code of the Belgian pharmaceutical market.
Which Odoo version does this run on?
Today, Odoo 18. The integration started on Odoo 13 and has been maintained through every update since.
Let's talk
If your reps close deals and the back office retypes them, you are paying for every order twice. We build the missing connection: from Odoo to the wholesaler and back.