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 17.0
  4. Sales Conditions FAQ

EH HR Workflow Engine

by ERP Heritage
Odoo
v 17.0 Third Party 18
Download for v 17.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
Declarative states
Group-gated transitions
Self-approval guard
Final-state lock
Post-action hooks

Why this module

EH HR Workflow Engine

01 / CONFIGURE

Steps are data, not code

States and transitions live in eh.hr.workflow.definition records. The status field derives its options from the definition, ordered as the definition orders its states. An administrator adds a step from the config screen; no developer, no deploy, no downtime.

02 / GUARDED

Transitions that refuse the wrong move

Every advance is checked against the definition: a transition must be declared from the current state, a final state forbids any further move, and group-restricted transitions reject users outside the allowed groups, with an admin bypass for setup.

03 / REUSED

One engine, every workflow module

The same mixin backs each feature module on the platform instead of every module re-implementing draft to submit to approve to done. One audited transition path, one status widget contract, one place to reason about how records move.

Day in the life

An administrator adds an approval step without a developer.

A leave correction used to go straight from submitted to approved. Compliance now wants a manager check in between. The administrator opens the workflow definition, adds a review state, and inserts two transitions, submit-to-review and review-to-approved, marking the second as requiring approval and tagging the approver group. The next correction raised carries the new step immediately, its status bar shows review between submitted and approved, and the approve button only appears for the approver group. The person who submitted the correction cannot approve their own request, because the engine captures the original submitter before handing the work to the approval engine. No module was redeployed; the change was three rows of configuration.

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

A state marked final forbids any further transition, even one a misconfigured definition mistakenly declares from it. is_final is the authoritative terminal marker, checked before the transition lookup, so a done record cannot be nudged back into motion.

ILLEGAL TRANSITION

action_transition resolves the transition strictly from the record's current state. A transition code that is not declared from where the record actually sits raises a clear UserError instead of silently writing an out-of-order state.

GROUP GATE

Transitions carry an allowed-groups set. A user outside every allowed group is refused, with an explicit admin bypass so a configurator can drive workflows during setup. An empty group set means any owner may execute the step.

SELF-APPROVAL

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

STATE ADVANCE VS APPROVAL

The state write is unconditional; requires_approval opens a chain as a side effect that gates the follow-up approve or refuse step, not the current one. This avoids records appearing stuck in their pre-submit state and the duplicate approval requests that the older skip-the-write behaviour produced.

BUTTON BINDING

action_transition accepts the transition code positionally for server-side callers or via the transition_code context key for view header buttons, which cannot pass positional arguments, so the same method is callable from both code and a form button.

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 eh.hr.workflow.mixin that consuming models inherit by declaring a workflow code.
  • What the mixin gives a record. A status Selection whose options come from the workflow definition, a default initial state on new records, action_transition to advance, a computed state_label, and a platform event emitted on every transition for audit.
  • Configuration and access. An admin-only Workflows screen under HR configuration to edit states, transitions, allowed groups, approval flags and post-action methods. HR administrators get full write; HR officers get read-only visibility.
  • Programmatic entry point. A registered eh.hr.workflow.engine service exposes apply_transition(record, code), the path the approval engine uses to fire the matching transition once a chain approves.

Honest about the edges

What this does not do, so nothing surprises you.

  • This is engine infrastructure for the EH HR Platform, not a standalone end-user app. On its own it provides the configuration screens and the mixin; the visible workflows come from the feature modules that consume it.
  • It requires eh_hr_core and is designed for the platform's models. It does not retrofit a state machine onto arbitrary standard Odoo models out of the box; a model must inherit the mixin and declare a workflow code.
  • Approval routing, escalation ladders and approver assignment live in the separate approval engine. This module only opens a request and reacts to the follow-up transition; it does not implement the approval chain itself.
  • Audit immutability and the platform event log are provided by the core platform layer, not by this module. This module emits transition events into that log rather than owning the tamper-evidence mechanism.
  • There is no proration, scheduling, cron, or multi-company partitioning logic in this module. Those concerns belong to the feature modules and engines that sit on top of it.
Search

odoo 17 workflow engine, odoo hr state machine, configurable approval workflow odoo, declarative workflow odoo, odoo statusbar workflow, draft submit approve done odoo, group gated transitions odoo, no code workflow configuration, odoo workflow mixin, self approval guard odoo, odoo 17 community hr, erp heritage hr platform

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 17 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