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. Employees
  3. EH HR Payroll v 17.0
  4. Sales Conditions FAQ

EH HR Payroll

by ERP Heritage https://www.erpheritage.com.au/
Odoo
v 17.0 Third Party 26
Download for v 17.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
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 • Employees (hr)
• Discuss (mail)
Community Apps Dependencies Show
• EH HR Compatibility
• EH HR Platform Core
• EH HR Workflow Engine
Lines of code 2237
Technical Name eh_hr_payroll
LicenseLGPL-3
Websitehttps://www.erpheritage.com.au/
Versions 16.0 17.0 18.0 19.0
ERP Heritage · HR Platform
Payroll on the EH HR Platform engine

EH HR Payroll for Odoo 17

Salary structures, sequenced rules, and payslips that compute gross, deductions, and net inside a sandboxed engine, on a workflow with a tamper-evident audit trail.

Free · LGPL-3Odoo 17 CommunitySandboxed rule enginev1.0.0
Sequenced salary rules
Sandboxed safe_eval engine
Gross / deductions / net
Draft to paid workflow
Tamper evident audit

Why this module

EH HR Payroll for Odoo 17

Closed sandbox

Rules cannot reach the ORM

Salary rules are expressions evaluated with safe_eval against a curated context. Record proxies mediate every attribute access and name mangle their backing stores, so a rule cannot read the cursor, the record slot, or the internal category store. Four negative tests prove each escape attempt fails with a clean error.

Provable integrity

Every change is on the chain

The payslip is an audited record. Create, write, and unlink emit rows into an append only, sha256 hash chained audit log whose appends are serialized by a Postgres advisory lock. verify_chain walks the chain and names the first tampered row, so an edited or deleted payslip history does not stay hidden.

Right altitude

Owns no engine of its own

Workflow, audit, and company scoping live in the platform mixins this module inherits, not in copies pasted here. Payroll stays focused on structures, rules, and slips, and country modules extend the same engine through documented hooks rather than forking it.

Day in the life

A monthly pay run, start to file

A payroll officer opens a pay run for the period, adds the employees, and computes every draft slip in one action. Each slip runs its structure rules in sequence: basic, housing allowance, a gross subtotal, a percentage tax on gross, and an employer contribution, with gross, total deductions, and net derived from the category kinds. The admin confirms the slips, the workflow records each transition on the hash chained audit trail, and the run exports a payment file of the net amounts for the confirmed slips. A recompute after a wage correction rebuilds the lines in place without duplicating them.

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.

Idempotent recompute

compute_payslip unlinks and rebuilds the lines each run and resyncs auto inputs, so recomputing a slip after a change never duplicates lines. A test asserts the line count is stable across repeated computes.

Sandbox escape blocked

safe_eval permits single underscore names and only blocks double underscore at compile, so the proxies refuse any underscore prefixed access and name mangle their stores. Attempts to reach the ORM, the record slot, or the category store all raise rather than leak.

Broken formula caught early

A constraint compiles every rule expression at save time, so a rule whose formula does not even parse is rejected on save with the offending code named, not discovered mid pay run.

Cross company refused

The company aware mixin forces company_id on create and refuses writing a record into a company the user is not a member of, even under sudo, unless an explicit audited override context is set. The elevation is recorded with every affected id.

Final state guarded

Paid and cancelled are final states. The workflow refuses any further transition out of a final state, and a confirmed slip can only be cancelled by an admin since by that point it may have reached the ledger.

Self approval guard

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

Currency rounding

Each line total is rounded with the company currency before category totals accumulate, so gross, deductions, and net are consistent with the slip currency rather than raw float arithmetic.

What is inside

Built to do the job, end to end.

  • Salary structures and rules. Structures hold rules applied in sequence. Each rule has a category, a condition (always, numeric range, or Python), and an amount that is fixed, a percentage of a base, or a code expression, with a quantity expression and an appears on payslip flag for rules that feed later math without showing a line.
  • The payslip engine. compute_payslip runs active rules in order, accumulating per category totals so later rules read categories.CODE and rules.CODE, writing one line per visible rule. Gross, total deductions, and net are derived from the basic, allowance, and deduction category kinds. A pay periods helper infers 52, 26, or 12 periods for annualisation hooks.
  • Pay runs and payment file. A payslip batch groups slips for a period, computes them all in one action, and totals net. Export builds a payment file from the confirmed and paid slips. The base format is a generic CSV; a country localization overrides one render method to emit its own bank format.
  • Extension points for localization. Documented hooks let country modules add safe rule helpers to the sandbox, feed auto inputs from loans, overtime, advances, or gratuity, read a real contract wage, and mark feeder sources processed once a slip is paid. The base module ships the engine and no statutory content.
  • Workflow, audit, and access. Payslips inherit the platform workflow, audited, and company aware mixins. Transitions are group gated to HR officer and HR admin, every change lands on the hash chained audit log, and access rules give self service users read only visibility. A QWeb PDF payslip report is included.

Honest about the edges

What this does not do, so nothing surprises you.

  • This is a payroll engine, not a country localization. The base module ships no statutory tax, social, or pension rules. PAYG, superannuation, PCB, and similar calculations come from separate country modules built on these hooks.
  • The bank file export is a generic CSV by default. Real bank formats such as an AU ABA file are produced by a localization that overrides the render method, not by this module alone.
  • No feeder modules ship here. Loan, overtime, advance, and gratuity auto inputs are extension points; the base returns nothing until a feeder module is installed.
  • Salary rules are expressions, not statements, so multi line procedural logic is not supported. Conditional amounts use Python inline if and else expressions inside the sandbox.
  • This module does not post payroll to the general ledger. Journal posting and reversal are handled by a separate accounting bridge.
  • Requires the EH HR Platform base modules (eh_hr_core, eh_hr_compat, eh_hr_engine_workflow). It is not a standalone replacement for Odoo Community payroll on its own.
  • Approval gating is available from the platform engine but payslip transitions are group gated rather than approval gated out of the box.
Search

Odoo 17 payroll, salary structures Odoo, salary rules engine, payslip Odoo 17, pay run batch, bank file export payroll, multi company payroll, payroll audit trail, sandboxed salary rule, gross net payroll Odoo, HR payroll workflow, Odoo Community payroll, QWeb payslip report, hash chained audit log, ERP Heritage HR

Work with ERP Heritage

Need this fitted to the way you work?

ERP Heritage delivers end to end Odoo work: Odoo Implementation, Customization and Development, Integration, Migration, Consultation, Support and Training. We help teams put this module into production, shape it to their process, and keep it running.

Build and tailor
Odoo Implementation, Customization and Development, scoped to your workflow.
Connect and move
Odoo Integration and Migration across systems and Odoo versions.
Run and support
Odoo Support and Training so your team stays productive after go live.
Plan and advise
Odoo Consultation and ERP Consulting, from discovery to roadmap.

We work with businesses across Australia (Melbourne, Sydney, Brisbane, Perth, Adelaide, Canberra) and the Middle East (Dubai, Abu Dhabi, Riyadh, Jeddah, Doha, Kuwait City, Muscat). Start a conversation at erpheritage.com.au or email info@erpheritage.com.au.

Languages

Available in 19 languages

The interface ships translated out of the box. Switch language in Odoo and the fields, menus, and messages follow.

ArabicChinese (Simplified)Chinese (Traditional)DutchFrenchGermanHindiIndonesianItalianJapaneseKoreanPolishPortuguese (Brazil)RussianSpanishSwedishThaiTurkishVietnamese
ERP Heritage

Production-grade Odoo HR, built to an engineering bar and documented honestly. Support: info@erpheritage.com.au
Developed by ERP Heritage - Top Odoo Partner • LinkedIn

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