Odoo ERP

Odoo Automated Actions: Follow-Ups and Stock Alerts

A practitioner's guide to Odoo automated actions, server actions and scheduled actions, with real configurations for follow-ups and low-stock alerts.

Tech After Me CEOCEO & Odoo ConsultantPublished 6 min read
Share
Odoo Automated Actions: Follow-Ups and Stock Alerts
On this page

Most Odoo databases already hold the data needed to chase a stale quotation or warn a buyer about a part running low. The missing piece is usually not more data. It is a rule that watches for the right moment and acts on it. That is exactly what Odoo automated actions do. Once configured correctly, they quietly handle work that used to live on someone's daily to-do list.

We get asked to build these constantly during Odoo customization engagements. Often a team has already tried a few automated actions on their own and hit a wall. A rule fires too often. An email goes out twice. A scheduled job never seems to run. None of these are bugs in Odoo. They are configuration mistakes, easy to make and just as easy to avoid once you understand the three pieces involved.

The Three Building Blocks Behind Odoo Automated Actions

Odoo automation sits on top of three distinct concepts. Conflating them is the root of most confusion.

  • Automated action (base.automation) - the trigger. It watches a model for a condition: record created, record updated, a field changed to a specific value, or a time-based condition like "48 hours after the date field."
  • Server action - the task. It runs Python code, sends an email, creates an activity, updates a field, or calls another server action. An automated action always points to one server action.
  • Scheduled action (cron) - a job that runs on a fixed schedule, every 15 minutes, nightly, weekly, independent of any single record event. Good for batch work: digest emails, cleanup jobs, or re-checking every record against a condition that a single trigger would miss.

In practice, a follow-up reminder usually combines an automated action (trigger: no activity logged in X days) with a server action (create an activity or send an email). A stock alert often needs a scheduled action instead, because "quantity on hand dropped below the reorder point" is not a single field write you can watch cleanly across every warehouse operation.

How to Set Up a Follow-Up Reminder With Odoo Automated Actions

A common pattern: nudge the sales team when a quotation has had no activity for three days.

  1. Enable developer mode, go to Settings, Technical, Automation, Automated Actions.
  2. Set the model to Sales Order. Choose trigger type Based on Form Modification or Based on Time Condition, depending on whether you want it to fire on every stage change or purely on elapsed time.
  3. For a time-based rule, set the trigger field to the order's last activity or write date, and set the delay to your threshold.
  4. Point it to a server action that creates a mail.activity for the salesperson, or sends a templated email if you prefer email over an in-app task.
  5. Add a domain filter so it only applies to orders still in the "Quotation Sent" stage, not confirmed orders. This single filter avoids the most common complaint we hear about follow-up rules: they keep firing on deals that already closed.

The domain filter matters more than the trigger itself. Without it, the rule looks correct in testing, one record, one trigger, and then misbehaves at scale because it matches records the business never intended to include.

Building a Low-Stock Alert on Top of Odoo Automated Actions

Stock alerts are trickier than follow-ups because "low stock" is a computed state, not a field that changes on its own. Two approaches work, each with a different trade-off.

Approach one: reordering rules. Odoo's built-in reordering rules, under Inventory > Configuration > Reordering Rules, already generate a request for quotation or manufacturing order when the forecasted quantity drops below a minimum. This is the standard mechanism, and it does not need a custom automated action at all. If the goal is simply "replenish before we run out," start here.

Approach two: a notification when stock crosses a threshold. Sometimes the goal is to alert a buyer or manager by email or activity without triggering a purchase automatically. For that, a scheduled action is the cleaner fit. Set it to run daily or a few times a day. Have it search for stock.quant records where quantity on hand is below a threshold stored on the product or category. Generate one activity per product rather than per quant line, so the buyer is not spammed with duplicate alerts for the same SKU across bins.

We generally recommend approach one unless there is a specific reason a human needs to review before any purchase is generated. Automated reordering is simpler, has fewer moving parts, and does not depend on a custom scheduled action staying healthy over time.

A Pre-Launch Checklist for Any Odoo Automated Actions Rule

A short checklist we run through on every automation request, because skipping any one of these is where the real incidents come from:

CheckWhy it matters
Domain filter scoped tightlyPrevents the rule from matching records outside its intended purpose
Active field respectedArchived or cancelled records should not re-trigger old rules
IdempotencyA rule that re-runs on the same record, for example after a related write, should not send duplicate emails or create duplicate activities
Performance on bulk operationsA rule that works on one record may time out on a CSV import of 5,000 lines
Who gets notifiedActivities should land on the actual responsible user, not a shared inbox nobody checks
Fallback when no user matchesDecide what happens if the salesperson field is empty before the rule runs in production

Idempotency is the one teams miss most. If an automated action triggers on "record updated" and the server action itself updates the same record, you can create a loop, or at minimum a rule that fires again on its own write. Odoo has basic loop detection, but it only catches the simplest cases. A rule that re-sends a notification email every time a tangentially related field changes often slips past that protection; it is a real annoyance, not something Odoo will reliably catch for you.

When Odoo Automated Actions Stop Being the Right Tool

Automated actions are configuration, not code, and that is their strength. No deployment, no server restart, changes are visible in the Studio-adjacent technical settings. But they have a ceiling. Once a rule needs to branch across more than two or three conditions, call external APIs, or coordinate state across multiple models with rollback logic, a short Python method in a proper module is easier to test, version, and hand off to the next developer. We cover this trade-off in more depth in our piece on configuring before building custom modules. Our general view is to start with native automation and only move to code once the rule itself becomes the hard part to maintain, not the business logic it represents.

One limitation worth naming directly: automated actions defined through the technical settings are not covered by the same test suite as a custom module. They are also easy to edit in production by someone without a development background. That flexibility cuts both ways. We recommend exporting automation records as XML data and tracking them in version control once a database has more than a handful of rules, the same discipline we would apply to any other piece of Odoo development work.

Getting Scheduled Action Frequency Right

Scheduled actions default to intervals that are often too conservative or too aggressive for the task at hand. An alert that only needs to run once a day should not be set to run every five minutes. It adds load to the database scheduler for no benefit, and it makes the job queue harder to read when something else actually needs attention. Match the interval to the business need. Document why that interval was chosen in the action's name or description field, and revisit it after go-live once you know the real data volumes involved.

If you are building out a broader automation layer, whether for sales follow-ups, stock alerts, or document reminders tied to compliance deadlines, treat each rule as a small piece of software with its own owner, not a one-off setting. Review them during your next Odoo support cycle alongside your access rights and scheduled jobs. A rule nobody remembers configuring is also a rule nobody notices when it quietly stops working. For teams considering whether a given rule belongs in Studio-style automation or a dedicated module, our Odoo customization services page walks through how we scope that decision before writing a line of code.

Share

Frequently asked questions

What is the difference between an automated action and a server action in Odoo?

A server action is the task itself, such as sending an email, updating a field, or running Python code. An automated action is the trigger that decides when a server action runs, based on a record being created, updated, or matching a time condition. You almost always pair the two together.

Can Odoo automated actions replace a custom module?

For simple, record-level logic such as follow-up reminders or stock alerts, yes. Once the logic needs multiple models working together, approval chains with exceptions, or heavy computation, a custom server action or module is more maintainable and easier to debug than a long chain of automated actions.

Do automated actions slow down Odoo?

They can, if the trigger fires on every write to a high-volume model like sales order lines or stock moves, and the action itself is slow, such as a search across a large table. We scope the domain tightly and test with realistic data volumes before go-live.

How do scheduled actions differ from automated actions triggered by a record change?

Scheduled actions run on a fixed interval, such as every night or every hour, regardless of what changed in the database. Automated actions triggered by a record event fire immediately when that event happens. Stock alerts often use the second type; batch cleanups or digest emails use the first.

Where do I find automated actions in the Odoo interface?

They live under Settings, Technical, Automation, Automated Actions, once developer mode is enabled. Scheduled actions sit nearby under Technical, Automation, Scheduled Actions. Both are server-side configuration, not a visual app, so changes should go through the same review as any other system change.

Sources

About the author

Tech After Me CEO

CEO & Odoo Consultant

The CEO of Tech After Me implements, customizes and supports Odoo ERP and builds web, mobile and data products for companies in Thailand, the USA and India.

More from this author

Keep reading

Odoo API Integration: XML-RPC, JSON-RPC and Auth BasicsOdoo ERP

Odoo API Integration: XML-RPC, JSON-RPC and Auth Basics

A practical guide to Odoo API integration: how authentication, XML-RPC and JSON-RPC calls work, and the patterns that keep external systems reliably in sync.

Tech After Me CEO6 min read

Put what you read into practice

The team writing these guides is the same team that ships them. Tell us what you are working on.

Get new articles in your inbox

Get new articles in your inbox

Odoo guides and IT news that matter to your business. At most one email a week.