HawklifyConnect your Odoo

Automation rules in Odoo: follow-ups that never slip

Create an automation rule in Odoo: when a sales order over $5,000 is confirmed, the sales manager gets a To-Do to call the customer. No code.

Odoo does the follow-up: an automation rule that plans a call for every big sales order.

A big order deserves a call from the sales manager, and a quotation sent last week deserves a follow-up. Both depend on someone remembering. An automation rule watches the records for you: when something happens, here a sales order over $5,000 is confirmed, it does the action you choose, here a To-Do for the sales manager. This guide builds that rule without code and tests it on an order.

It works the same in Community and Enterprise. The versions we tested are listed at the end.

This guide is also an AI tutorial. At the end, an AI assistant connected to Odoo builds this rule from one sentence and shows which orders it would have caught, then finds the old rule that never sent a single reminder.See it in action ↓

Before you start

  • The Sales app installed. Automation rules come with the Automation Rules module (base_automation): install it from Apps if the menu is missing.
  • Developer mode on: Settings → Developer Tools → Activate the developer mode. The rules are in Settings → Technical → Automation → Automation Rules.

1. Create the rule and its condition

In Automation Rules press New.

  1. Give the rule a name: Big order: warn the sales manager.
  2. Model: Sales Order.
  3. Trigger: State is set to, and next to it Sales Order. The rule runs once, when the order is confirmed.
  4. In Apply on press Edit Domain and add the conditions Status is equal to Sales Order and Total greater than 5,000. Press Confirm.

The Domain dialog of the rule with Status equal to Sales Order and Total greater than 5,000 Only confirmed orders over $5,000.

2. Add the action

Under Actions To Do press Add an action.

  1. As Type pick Create Activity.
  2. Activity Type: To-Do. Title: Big order: call the customer.
  3. Due Date In: 1 Days.
  4. User Type: Specific User, and as Responsible the sales manager, here Mitchell Admin.

Press Save & Close.

The Create Actions dialog with the To-Do Big order: call the customer, due in 1 day, for Mitchell Admin The action: a To-Do for the sales manager, due tomorrow.

3. Save the rule

Press Save. The rule shows the model, the trigger, the condition and its action. Next to the condition, Odoo counts the records that match it today.

The saved rule Big order: warn the sales manager with its trigger, condition and the Create To-Do action One rule: when, on what, and what to do.

4. Test it on an order

Create a quotation for Azure Interior with 5 Executive Desk Walnut, $6,150, and press Confirm. In the chatter, under Planned Activities, the To-Do Big order: call the customer is there for tomorrow, for the sales manager. Confirm a small order too: it gets nothing.

The sales order S00028 of $6,150 with the planned activity Big order: call the customer for tomorrow The rule worked: the call is planned.

Common mistakes

  • Trigger On create and edit for a one-time event. A rule that runs on every save creates a new To-Do each time someone edits the order. For “when it is confirmed”, use State is set to.
  • The condition without the state. Without Status is Sales Order, quotations over $5,000 match too.
  • Testing on an old order. Rules don’t look back: test on a new order.
  • Nobody checks the rules. The list only shows names. Open old rules once a year and read their conditions, as in the second example below.

Automation rules with AI: ask your AI assistant through MCP

With the Hawklify MCP server, Claude, ChatGPT and other assistants work in your Odoo as you, with your permissions. A rule is easy to say in words and fiddly to click together: model, trigger, domain, action. And an old rule with a wrong condition fails silently for years.

In the browser, on the Automation Rules page. Depending on how your organisation set up the server, the assistant makes the change straight away or first shows you a card to approve. Here Smart mode is on. Rules are technical records: an administrator allows them for the assistant on the members page of Hawklify.

The Automation Rules list in Odoo with the rules Big quote follow-up and Overdue invoice reminder
✳ AssistantSmart mode
When a sales order over $5,000 is confirmed, give the sales manager a To-Do to call the customer. And show me which orders of the last 30 days it would have caught.
✓Read the Sales Order model and the activity types in Odoo›

Here is the rule:

  • Big order: warn the sales manager, on Sales Order
  • Runs when the state is set to Sales Order, only if Total > 5,000
  • Creates a To-Do Big order: call the customer for Mitchell Admin, due the next day

Create it?

Create itChange something
Create it
✓Created the automation rule in Odoo›
✓Added the To-Do action to the rule in Odoo›
✓Read the confirmed orders of the last 30 days in Odoo›

Done: the rule is active and runs only when the state changes, so editing an order later adds no new To-Do.

In the last 30 days it would have caught 3 orders:

  1. Deco Addict, $12,300, Nov 15
  2. Gemini Furniture, $7,342, Nov 10
  3. Azure Interior, $5,814, Nov 6

The other 7 confirmed orders were under $5,000.

AI side panel in the browser · Smart modeOn the Automation Rules page: a rule from one sentence, and the orders of the last month it would have caught.Works with AI assistants that run in a browser side panel and can use MCP connectors.

On the computer. Here card mode is on: nothing changes until you approve the card.

Automation rules ⌄Card mode
We have a rule that should remind customers about overdue invoices, but I've never seen a reminder. Can you check it?
✓Read the automation rules in Odoo›
✓Read the unpaid customer invoices and credit notes in Odoo›

Found it. Overdue invoice reminder runs 3 days after the due date, but its condition says ==move_type = out_refund==: that is credit notes, not invoices.

So it never looks at an invoice. It only watches your 4 unpaid credit notes (RINV/2026/00001 to 00004), where you owe the customer.

Meanwhile INV/2026/00004, Acme Corporation, $31,750, was due on Nov 3: 15 days overdue, no reminder.

Change the condition to customer invoices?

Yes, fix it.
✓Prepared the change in Odoo›

Approval needed in OdooUpdate

Make Overdue invoice reminder watch customer invoices instead of credit notes.

base.automation · 1 record

Overdue invoice reminder

FieldCurrentNew
Apply onType = Credit Note, unpaidType = Customer Invoice, unpaid
Approve and runRejectExpires in 3:59:59

Change applied in Odoo.

Organisation administrators can turn the approval cards off on the Members page.

Approved. And Acme?

The rule now catches every invoice that becomes overdue from today. It doesn't go back in time, so Acme's invoice won't get one. I can add the reminder to it now, for its salesperson Marc Demo.

Do it.

Approval needed in OdooCreate

Add the To-Do Remind the customer to pay on INV/2026/00004 (Acme Corporation, $31,750), for Marc Demo, due today.

mail.activity · 1 record

INV/2026/00004 · Acme Corporation

Approve and runRejectExpires in 3:59:59

Change applied in Odoo.

Organisation administrators can turn the approval cards off on the Members page.

Approved.

Done. Marc has the reminder on the Acme invoice today, and the rule takes care of the next ones.

AI app on the computer · Card modeAn old rule read line by line: the reminder that watched credit notes instead of invoices, fixed, and the invoice it missed.

Versions we tested

Version Result
Odoo 16 The menu is called Automated Actions and the action is on the rule itself. Trigger On Update, with Status is not Sales Order as Before Update Domain and the condition in Apply on. As Action To Do pick Create Next Activity. The activity type is called To Do.
Odoo 17 As in this guide. The trigger and its value are drop-down lists.
Odoo 18 As in this guide.
Odoo 19 As in this guide. The screenshots come from Odoo 19.
Odoo 20 Same steps. In the action, the activity types are buttons, with To-Do already chosen.

Frequently asked questions

Do I need developer mode?

Yes, to reach the menu: Automation Rules is under Settings, Technical, which shows in developer mode. Once the rule exists, it runs for everyone, with or without developer mode.

Can a rule send an email instead of an activity?

Yes. Pick Send Email as the action and choose an email template. Activities are often better for internal follow-ups, because they stay on the record until someone marks them done.

Does the rule run on orders that were already confirmed?

No. A rule with the trigger State is set to runs when the state changes. Orders confirmed before you saved the rule are left alone.

How do I stop a rule for a while?

Archive it from the gear menu on the rule. It stops running and stays in the list with the Archived filter, ready to be restored.

Questa guida è disponibile anche in italiano: Regole di automazione in Odoo: solleciti che non sfuggono