← All work

Case study 07 · Pharma sales

MDSMedicine Distribution System

Field-force management for a pharmaceutical company: which doctors and pharmacies each medical representative covers, how often they visit each one, and how many samples and products are given out. Built as a custom Odoo module on top of Odoo's existing modules.

Users
Medical representatives & sales management
Platform
Odoo (custom module)
Domain
Pharmaceutical sales & distribution
Stack
Python · XML · Odoo ORM · PostgreSQL
01

The business problem

A pharmaceutical company's sales depend on its medical representatives: the people who visit doctors and pharmacies, present products and hand out samples. Without a system, management cannot easily answer the basic questions about that field work.

Who are we covering, how often, and what are we giving away? Which doctors and pharmacies are visited and which are missed, whether each representative keeps the expected visit rhythm, and where every sample and product unit actually went.

02

What it measures

Coverage
how many doctors and pharmacies the company reaches
Frequency
how often each representative visits each doctor and pharmacy
Samples
how many free samples are given, to whom and by whom
Products
how many product units are distributed through the field force
03

Business side

Representatives & territories

who covers whom

  • Each representative's portfolio of doctors and pharmacies, so every account has a clear owner.
  • Coverage at a glance: how many doctors and pharmacies the field force reaches in total and per representative.
  • Gaps made visible: accounts that are not being visited stand out instead of being forgotten.

Visits

how often, and to whom

  • Visits recorded against the doctor or pharmacy and the representative who made them.
  • Visit frequency per representative per account, so management can see who keeps the expected rhythm.
  • A field-activity history for every doctor and pharmacy.

Samples & products

every unit accounted for

  • Samples given recorded per visit, per doctor or pharmacy, and per representative.
  • Product quantities distributed tracked the same way.
  • Accountability: sample and product totals can be traced back to the person and the account.

Management view

decisions from field data

  • Representative performance compared on coverage, visit frequency and distribution.
  • Where the effort goes: which doctors and pharmacies receive the most visits, samples and products.
04

Technical side

Built inside Odoo rather than from scratch. MDS is a custom Odoo module that extends Odoo's existing modules instead of rebuilding what they already do, so the company gets field-force management inside the ERP it already runs.

  • Reuses existing Odoo modules and records rather than duplicating them, so contacts, products, users and the rest of the ERP stay one source of truth.
  • Custom models written in Python on the Odoo ORM for the field-force data: representatives' accounts, visits, and samples and products distributed.
  • Views defined in XML, so the module looks and works like the rest of Odoo for its users.
  • PostgreSQL underneath, through Odoo's standard data layer.
  • Installable as a module: it plugs into an existing Odoo instance like any other app.
—

More work