Timefold x Odoo integration

Optimized field service plans, written straight into Odoo

Odoo Field Service already holds your appointments, technicians, and customers. The Timefold Field Service Routing model decides who goes where, in which order, and at what time. The proposal appears next to each appointment in Odoo Planning, and one click accepts it. It also works on Odoo Online, where you can't install custom modules.

Planners keep the Planning app and drop the Gantt shuffle

Most teams that run Odoo Field Service build the day by hand. A planner drags appointments onto technicians in the Gantt view, then rebuilds the day when a technician calls in sick or a job runs long. With this integration, the planner picks Send to Timefold in the Planning menu. The Field Service Routing model takes the next day that has appointments, assigns every open appointment, puts the visits in order, and sets the times. It weighs skills, working hours, home bases, and travel together. A minute or two later, the proposal is on the appointments your team already opens.

Field Service Routing

Every visit assigned, sequenced, and timed

One API, fed by the appointments, employees, and customers that are already in your Odoo database. It returns the day: who goes where, in what order, and at what time.

What shapes the plan

The model reads the records you already keep in Odoo

/
Skills and skill levels from employee skills, and planning roles
/
Each technician's working hours, from shift fields or the working schedule
/
Home base as the start and the end of each route
/
Travel time and distance between customer locations
/
Job duration from the allocated hours of each appointment, and an optional maximum number of visits per technician per day
When the day changes

Plan again without moving work that has started

When a job runs long or a technician isn't available, send the day again. The model plans around the work that has already started.

/
Appointments that are In Progress or Completed keep their time and their crew
/
The model routes all other appointments on that day around them
/
The new proposal replaces the old one, and your schedule changes only when you accept
The plan in Odoo

Your team keeps the screens they know

The proposal is stored in custom x_timefold_* fields on each appointment, next to the schedule you already have. Odoo's own start, end, and resource fields stay as they are until a planner accepts.

/
Send to Timefold is in the Planning menu, and Send to Timefold and Accept all proposals are above the Planning list
/
Each appointment shows the proposed technician, start time, stop number, travel, and status
/
After you accept, the Gantt view shows the visits with the planned drives, and the map view draws each technician's route

Accept one appointment, or accept all the proposals of a day. One command removes what the integration added to Odoo: its views, its actions, and its fields.
How it works

Odoo data in. Proposed routes back.

A small connector runs outside Odoo and uses Odoo's External API. That's why the same integration works on Odoo Online, Odoo.sh, and self-hosted Odoo, and why you don't need Odoo Studio.

01

Send the day

A planner picks Send to Timefold in the Planning menu. Odoo posts a webhook to the connector.

/
Server action and webhook
/
No custom module
02

Solve

The connector reads the day's appointments, technicians, and skills, builds the dataset, and posts it to the Field Service Routing API.

/
XML-RPC to Odoo
/
JSON over REST to Timefold
03

Accept

The proposal appears next to each appointment. Accept all proposals copies it into Odoo's own schedule, drives included.

/
Proposal first
/
The schedule changes only on accept
Quick Start
git clone https://github.com/TimefoldAI/odoo-field-service.git
cd odoo-field-service
cp .env.example .env     # your Odoo and Timefold credentials
./timefold-fsm doctor    # checks your Odoo, prints next steps
./timefold-fsm connect   # tunnel, Odoo menu, views, receiver

doctor reads your Odoo and prints the commands for your situation. On an empty database, seed adds a demo operation to plan: eight technicians, 30 clinics, and a day of unassigned appointments. You need uv or Docker, an Odoo API key, and a Timefold API key from the free trial.

Field Mapping, in short

Timefold

hr.employee

vehicle

resource.calendar

vehicleShift.minStartTime, maxEndTime

x_timefold_home_latitude, _longitude

vehicleShift.startLocation, endLocation

hr.employee.skill, planning_role_ids

vehicleShift.skills[]

planning.slot

visit

res.partner.partner_latitude, partner_longitude

visit.location

planning.slot.allocated_hours

visit.serviceDuration

planning.slot.role_id

visit.requiredSkills[]

Getting started

Choose how you want to build it

Pick the option that fits your team and your timeline.

Build it yourself

Start from the open reference integration

An open-source connector between Odoo Field Service and Timefold. It adds its fields, views, and menu actions to Odoo through the External API, and it can load a demo operation to plan.

/
Free to use, read, and fork (Apache 2.0)
/
Runs on an Odoo trial database before it goes near production
/
Nothing to install in Odoo, so it also runs on Odoo Online
Work with a partner

Hand it to people who have done it before

Odoo partners help with the customizations in your database and with modeling your business rules.

/
Discovery, modeling, and rollout
/
Constraints specific to your business
/
Support after go-live
Talk to Timefold

Scope it with us first

Bring your rules and a slice of your data. We will tell you honestly whether optimization helps, where the value sits, and what a first pilot would need to prove.

/
A working session with our solution engineers
/
A trial you can run against your own data
/
Pricing that starts small
Questions

Before you ask

Do we have to replace Odoo Field Service?
+

No. Odoo stays the system of record and the place your team works. Timefold reads from it and writes a proposal back to it. If you switch Timefold off tomorrow, every appointment is still where it is.

Does it work on Odoo Online?
+

Yes, on a plan that has access to the External API. Odoo's documentation gives that access to the Custom plan only. Odoo Online doesn't let you install custom modules, so the connector runs outside Odoo. Everything it adds to Odoo is a custom field, a view, a menu item, or a server action. You don't need Odoo Studio.

Where does the connector run?
+

The connector is a small Python service. For a trial, it runs on your laptop and opens a Cloudflare quick tunnel so that Odoo can reach it. For production, run the container on a host with a stable URL. Each request from Odoo must carry a token.

Does it change our schedule?
+

Not until a planner accepts. The proposal is stored in separate x_timefold_* fields. Accepting is the only action that writes to Odoo's own start, end, and resource fields.

Which Odoo versions does it support?
+

Odoo 19 and later, where the Field Service app is built on Planning. It works with Odoo Online, Odoo.sh, and self-hosted Odoo.

Can we see why the plan looks the way it does?
+

Yes. Each appointment keeps the ID of the Timefold dataset that planned it. Open that dataset in the Timefold Platform to see the score analysis: which constraints matched, and what each one cost. Appointments that the model couldn't place get the status Unplanned in Odoo, with a filter to find them.

What doesn't the reference integration do yet?
+

It plans one day at a time, and it sends the whole day with each request. It doesn't map customer time windows, lunch breaks, priorities, or optional visits yet. The Field Service Routing model supports all of these, and the mapping guide in the repository lists them as the next steps.

How long does the first version take?
+

The reference integration plans a demo day on an Odoo trial database the same day. A production rollout is measured in weeks, and most of that time goes on agreeing the rules rather than on writing software.

Plan your field service routes from inside Odoo.

One menu item sends the day. One click accepts the plan.