BPMN Workflow Engine: run approval process and process automation on Odoo records
by Aerya IT Solutions https://aerya.net$ 108.47
In-App Purchases
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
BPMN Workflow Engine: run approval process and process automation on Odoo records
Turn a BPMN 2.0 process into a working approval workflow. Each record gets its own run: tasks arrive as Odoo activities, gateways route by record conditions, service steps update fields or send mail, and timers remind or escalate. A diagram on the record shows the current step and who did what.
Exclusive and parallel gateways, service tasks, timers and escalations
Process view on every record and a dashboard of open and overdue tasks
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
Screenshots of Odoo 17 Enterprise, German interface.
The problem
An expense above a limit needs the approval of a manager, then of finance. A new supplier needs a check before the first order. Most companies run these processes by e-mail and memory: somebody forwards a message, somebody forgets, and nobody can say where a request is stuck or how long it has waited.
A process drawn on a whiteboard is not a process that runs. The company wants the drawing to become the workflow: each record gets its own run, the right person gets the task, and the history says who did what and when.
What the module does
It runs the BPMN 2.0 processes drawn with BPMN Process Modeler (aerya_bpmn) on Odoo records. A process is bound to one model, and one instance runs per record. A generic Case model serves processes that have no natural record. User tasks become Odoo activities for a user, a group or the user in a field of the record, with approve and reject leading to different flows. Service tasks update fields, run a server action, send a mail template or create a related record. Gateways route by conditions or run steps in parallel, and timers remind or escalate.
How it works, step by step
- Draw the process. Draw it with BPMN Process Modeler and choose its model on the empty canvas.
- Set the steps. In the panel set the start, the assignees, the conditions and the service steps.
- Choose how it starts. When a record is created, when it starts matching a filter, with the Start process action, or when a date field is reached. These use core automation rules, created when the process is deployed and removed when it is undeployed.
- Deploy. Press Deploy. The checks name any problem, and the start rules are created. A deployed version is frozen.
- Work on the records. User tasks appear as activities. The user completes them, or presses Approve or Reject.
- Follow the progress. The Process action of the record shows the diagram with the current steps highlighted and the step history: who, when and how long.
- Watch the dashboard. Open tasks, overdue tasks and the time per step are in the dashboard. My tasks lists what is waiting for you.
A worked example
A quotation above 5000 EUR needs the approval of management. The process starts when the quotation is created. The first task, check and approve, is an activity for the sales managers group. If the salesperson's manager rejects, the process ends as rejected. If they approve, an exclusive gateway asks whether the amount is above 5000: if yes, a second task goes to the management group, and if not, a service step marks the quotation as approved. A timer on the first task can send a reminder when the deadline passes. On the quotation, the Process action shows the diagram, where the process is, and how long each step took.
Features
The current step on the diagram
Open the Process action of a record: the diagram highlights the steps that are open and the steps already done, and the table lists who answered, when and how long it took. Approve or reject right there.

Tasks where people already look
A user task becomes an Odoo activity on the record, with a due date. Required fields can be checked before the task is completed, and an approval task leads to different flows.

Open work and time per step
The dashboard counts open and overdue tasks and shows the average time per step, so slow steps are easy to find.

Gateways, service tasks and timers
Exclusive gateways use conditions written with the domain editor of Odoo, plus a default flow. Parallel gateways split and join. Service tasks run an allowed server action, set field values, send a mail template or create a related record. A timer waits for a duration or a date field, or sits on a task to remind or escalate. A cron fires the timers and is safe to run twice.

Settings and options
| Model | The Odoo model the process runs on, or the generic Case model. |
| Start | Record created, record matches a filter, Start process action, or a date field. |
| User task | A user, a group or the user in a field. Optional required fields, deadline, approve and reject. |
| Run as | The process manager who deployed the process. Service tasks and conditions run with the rights of that user. |
| Versions | A deployed version is frozen. Instances finish on the version they started with. |
What it does not do
- Deployment stops with an error naming the element and its id for: inclusive and event-based gateways, sub-processes, call activities, tasks without a type, script, manual, send and receive tasks, message, error, signal, escalation, conditional, link, terminate and compensation events, repeating timers, message flows and several pools.
- Moving running instances to a new version is not supported.
- Service tasks and gateway conditions never run with elevated rights: they use the rights of the user shown as Run as. Give that user only what the process needs.
- A server action must be allowed by an administrator before a service task can run it.
Requirements
| Odoo versions | 17, 18, 19 and 20 |
| Editions | Community and Enterprise |
| Odoo apps | Automation rules (base_automation) and Discuss (mail) |
| Modules of ours | BPMN Process Modeler (aerya_bpmn), which draws the processes |
| Languages | English and German |
Questions
Can a process run on any record?
On any Odoo model: a process is bound to one model, and each record gets its own run. A generic Case model serves processes without a natural record.
Who can do a task?
A user, a group, or the user in a field of the record. The user completes the task with their own rights.
What happens to running processes when I change the drawing?
A deployed version is frozen. Running instances finish on the version they started with.
What if a deadline passes?
A timer on the task can remind or escalate. The cron that fires the timers is safe to run twice.
Do I need the modeler?
Yes. The processes are drawn with BPMN Process Modeler, which is a separate module.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 17, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Aerya IT Solutions · Developed in the European Union · aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 3570 |
| Technical Name |
aerya_bpmn_workflow |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module