Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Platform
  3. EH HR Workflow Engine v 19.0
  4. Sales Conditions FAQ

EH HR Workflow Engine

by ERP Heritage
Odoo
v 19.0 Third Party 18
Download for v 19.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Discuss (mail)
• Employees (hr)
Community Apps Dependencies Show
• EH HR Platform Core
• EH HR Compatibility
Lines of code 1092
Technical Name eh_hr_engine_workflow
LicenseLGPL-3
Versions 16.0 17.0 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Discuss (mail)
• Employees (hr)
Community Apps Dependencies Show
• EH HR Platform Core
• EH HR Compatibility
Lines of code 1092
Technical Name eh_hr_engine_workflow
LicenseLGPL-3
Versions 16.0 17.0 18.0 19.0
ERP Heritage · HR Platform
ERP Heritage . HR Platform

EH HR Workflow Engine

State machines as data, not Python.

Free · LGPL-3v 1.0.0LGPL-3v1.0.0
States and transitions as data
Single mixin makes any record workflow-driven
Dynamic statusbar from the definition
Group-gated transitions with admin bypass
Final-state guard blocks dead-end moves

Why this module

EH HR Workflow Engine

CONFIGURE

Workflows are data, not deploys

States, transitions, allowed groups, approval gates and post-actions all live in eh.hr.workflow.definition records. Adding or rewiring a step is a configuration change an administrator makes, not a Python change that ships on a release.

REUSE

One engine, every HR module

Instead of each feature re-coding the same draft to submit to approve to done logic, every workflow record composes a single mixin. The statusbar, the transition guard and the audit trail behave identically across the platform.

GOVERN

Gated moves and a real audit trail

Transitions can require a named user group or open an approval chain, and the submitter is captured before any sudo so they cannot approve their own request. Each transition is emitted to the hash-chained platform audit log.

Day in the life

A correction request, end to end

An employee opens an attendance correction. The form already shows the initial state from the workflow definition, so the submit button is live on a brand new record. They submit; the engine advances the state, writes the move to the audit log, and because the transition is marked as requiring approval, opens a chain through the approval engine with the real submitter recorded. A team lead who is not the submitter approves; the engine fires the matching approve transition and the record moves to its final state. From there the final-state guard refuses any further move, even one a misconfigured definition might declare. None of this required a code change: the states, the gate and the approver group were all set up as data.

Edge cases

The cases most modules quietly ignore.

In the shipped code today, each one a place where a cheaper module silently does the wrong thing.

FINAL STATE

States flagged is_final are authoritative terminal markers. action_transition refuses any move out of a final state, even one a misconfigured definition declares from it, so records cannot be re-opened by accident.

BUTTON DISPATCH

action_transition accepts the transition code positionally (server callers, named wrappers) or from the context key transition_code (view header buttons, which cannot pass positional arguments), and raises cleanly when no code is resolved.

SELF-APPROVAL GUARD

When a gated transition opens an approval request, the real submitter is captured with submitted_by before the engine runs under sudo, so a user who fired the transition cannot later approve their own request even if they hold an approver group.

IDEMPOTENT ADVANCE

The state write is unconditional and the approval gate is a side effect on the follow-up transition, fixing an earlier defect where gated records appeared stuck in their pre-submit state and re-fired duplicate approval requests against the same record.

GROUP GATE + ADMIN

Transitions with group_ids only execute for users in an allowed group, with an explicit admin bypass via is_admin, and raise a clear UserError otherwise. Empty group_ids means any owner may execute the move.

UNIQUE ACTIVE CODE

A database constraint enforces one active definition per code (unique(code, active)), declared through models.Constraint on Odoo 19 and the legacy _sql_constraints list on 16 to 18 so the rule holds on every series.

NO-WORKFLOW SAFETY

A model that declares no _workflow_code still keeps a valid state field: the selection resolves to an empty list and the default falls back to False rather than raising, so the mixin is safe to inherit before a definition exists.

What is inside

Built to do the job, end to end.

  • Models this module adds. eh.hr.workflow.definition, eh.hr.workflow.state, eh.hr.workflow.transition and the abstract consumer mixin eh.hr.workflow.mixin. A registered service surface, eh.hr.workflow.engine, exposes apply_transition for programmatic callers such as the approval engine.
  • What the mixin gives a record. A Selection state field whose options and order come from the definition, a state_label compute, a default that shows the initial state on an unsaved form, dynamic statusbar support, and action_transition to advance the workflow with audit emission and optional approval routing.
  • Configuration and access. A Workflows form under the HR configuration menu (HR Admin only) with editable lists for states and transitions, including sequence handles, final flags, state kind, allowed groups, approval chain code and post-action method. Access rules grant HR Admin full control and HR Officer read-only.
  • How it connects. Built on eh_hr_core: transitions emit the workflow.transition event through emit_platform_event, which lands in the hash-chained eh.hr.audit.log, and gated transitions hand off to eh.hr.approval.engine. It stands on the platform engines rather than extending standard Odoo models directly.

Honest about the edges

What this does not do, so nothing surprises you.

  • This is platform infrastructure, not an end-user feature. On its own it ships the engine, the four models and an admin configuration screen; the visible draft to approve lifecycles come from the feature modules that consume the mixin.
  • Approval-driven transitions require eh_hr_engine_approval to be installed and an active approval chain configured for the company. Without a matching chain, a gated transition raises rather than silently completing.
  • Workflow definitions are not themselves company-scoped: there is one active definition per code. The approval engine it hands off to resolves chains per company, but the state machine shapes are global.
  • The module ships no seed workflow data, no cron jobs and no wizards. States, transitions and approval gates must be created as configuration before a consuming model has a usable lifecycle.
  • The mixin derives the statusbar and supports an OWL renderer at the platform level, but this module itself ships no JavaScript front end; it provides the backend form views only.
  • Group-gating controls who may execute a transition; it does not by itself partition record visibility. Row-level access still comes from the consuming model's own record rules.
Search

Odoo HR workflow engine, Odoo state machine, declarative workflow Odoo, draft submit approve done, configurable statusbar Odoo, group gated transitions, approval chain integration, post transition hooks, HR audit trail Odoo, self approval prevention, Odoo 19 Community HR, workflow mixin, no code workflow Odoo, HR platform engine, Odoo 16 17 18 19

ERP Heritage

Production-grade Odoo accounting, built to an engineering bar and documented honestly. Support: info@erpheritage.com.au
Developed by Odoo Consultant Sydney

v1.0.0 · LGPL-3 · Odoo 19 Community

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with