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 Links v 18.0
  4. Sales Conditions FAQ

EH HR Payroll Links

by ERP Heritage https://www.erpheritage.com.au/
Odoo
v 18.0 Third Party 10
Download for v 18.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)
• Attendances (hr_attendance)
Community Apps Dependencies Show
• EH HR Gratuity
• EH HR Loan
• EH HR Overtime
• EH HR Payroll
• EH HR Salary Advance
• EH HR Compatibility
• EH HR Platform Core
• EH HR Workflow Engine
• EH HR Attendance Pro
• EH HR Approval Engine
• EH HR Notify Engine
• EH HR Policy Engine
Lines of code 7347
Technical Name eh_hr_payroll_link
LicenseLGPL-3
Websitehttps://www.erpheritage.com.au/
Versions 16.0 17.0 18.0 19.0
ERP Heritage · HR Platform
Payroll bridge module

EH HR Payroll Links

Loans, advances, overtime and gratuity reach the payslip as input lines, rebuilt on every compute and marked processed once paid so nothing is deducted twice.

Free · LGPL-3Odoo 18 CommunityLGPL-3v1.0.0
Loan instalment to LOAN deduction
Advance recovery to ADVANCE deduction
Paid overtime to OT_HOURS quantity
Approved gratuity to GRATUITY input
Rebuilt on every compute

Why this module

EH HR Payroll Links

Amounts actually reach pay

The request modules stop being islands

A loan, advance, overtime claim or gratuity raised in its own module is worthless until it hits a payslip. This module collects all four for the employee and period at compute time and turns each into an input line your salary structure can read by code.

Safe to recompute

Rebuilt every compute, never duplicated

Auto inputs are deleted and rebuilt on each compute, so re-running a payslip always reflects the current loan balance and approved overtime. Manual input lines you added by hand are left untouched. Recomputing twice yields the same set, not doubled deductions.

Paid once, never again

Source records marked processed on pay

When a payslip is paid the loan instalment is marked paid, the advance recovered, and the overtime and gratuity flagged processed. A later payslip for the same employee and period then feeds nothing, so the same amount is never deducted or paid twice.

Day in the life

A payroll officer runs the January slip for a fed employee.

The employee has a loan instalment due 15 January, a salary advance set to recover in January, ten hours of paid overtime done on the 10th, and an approved gratuity computed on the 5th. The officer opens the payslip, sets the structure and period, and clicks compute. Without touching the request modules again, four input lines appear: a LOAN deduction for the instalment, an ADVANCE deduction for the recovery, OT_HOURS carrying the compensated hours as a quantity so the overtime rule applies the rate, and a GRATUITY input the gratuity rule pays out. The structure rules turn these into pay and deduction lines, gross and net settle, and the officer confirms and pays. At that moment the instalment is marked paid, the advance recovered, and the overtime and gratuity flagged processed. If anyone computes a second January slip for the same employee, no auto inputs are produced, because every source has already been consumed.

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.

RECOMPUTE

Auto inputs are unlinked and rebuilt on every compute, so a re-run reflects the current loan balance and approved records rather than stacking a second set of deductions on top of the first.

DOUBLE DEDUCTION

Once a payslip is paid the loan instalment is marked paid and the advance, overtime and gratuity are flagged on their own records. A fresh payslip for the same employee and period then collects nothing, so an amount cannot be deducted or paid in two periods.

MANUAL INPUTS

Only lines flagged as auto are rebuilt. An input line you entered by hand survives every compute untouched, so fed-in amounts and manual adjustments coexist on the same slip without clobbering each other.

OVERTIME AS HOURS

Overtime is fed as a quantity with a zero amount, carrying the compensated hours (hours times multiplier), so the salary structure rule decides the hourly rate rather than the bridge hard-coding a pay figure.

PROCESSED MARKERS

The processed and recovered flags on the source records are copy-false and read-only, so duplicating a record clears the flag for a genuinely new claim while a user cannot silently un-mark a consumed one in the form.

PARTIAL FEEDS

Each feeder is independent. A period with only a loan due produces just a LOAN input, and on pay only the loan source is searched and marked, leaving advance, overtime and gratuity records alone.

What is inside

Built to do the job, end to end.

  • Auto-input collector. Overrides the payslip _collect_auto_inputs extension point to append loan, advance, overtime and gratuity input dicts for the slip's employee and period. Loans pull unpaid instalments due in the period, advances pull paid advances whose recovery month falls in the period and are not yet recovered, overtime pulls paid done records, gratuity pulls approved records computed in the period.
  • Pay-time reconciler. Overrides _on_payslip_paid to mark each consumed source processed, but only for the feeders that actually appear as auto inputs on the slip. Loan instalments are set paid, advances recovered, overtime and gratuity flagged processed, all scoped to the same employee and period the slip covered.
  • Processed-marker fields. Adds copy-false, read-only boolean markers to the overtime, gratuity and salary-advance models (eh_payslip_processed and eh_payslip_recovered) so a record consumed by one payslip is invisible to the next compute. The loan side reuses the existing paid flag on the instalment line.
  • Structure-driven treatment. The bridge only supplies input lines keyed by code (LOAN, ADVANCE, OT_HOURS, GRATUITY). Whether each becomes a deduction, an allowance or a paid line is decided entirely by the rules in your salary structure that reference inputs.CODE, so behaviour stays under your control.

Honest about the edges

What this does not do, so nothing surprises you.

  • Server-side bridge only. It adds no menus, views, wizards or scheduled jobs of its own; the manifest ships no data files. You drive it through the existing payslip compute and pay buttons.
  • Requires its five dependencies installed: eh_hr_payroll, eh_hr_loan, eh_hr_overtime, eh_hr_gratuity and eh_hr_salary_advance. It bridges those specific modules and is not a generic payroll connector.
  • It does not write the salary-structure rules for you. The codes it feeds (LOAN, ADVANCE, OT_HOURS, GRATUITY) only affect pay if your structure has rules that reference them; without those rules the inputs sit unused.
  • Feeding is by employee and pay-period date match on each source. It does not prorate an instalment across split periods or apply approval, escalation or self-approval logic; those live in the source request modules, not in this bridge.
  • Source records are consumed when the payslip is paid, not when it is confirmed or cancelled. The bridge does not reverse a marker if a paid slip is later undone, so cancelling after payment is an operational step you handle in the source modules.
Search

Odoo 18 payroll integration, Odoo loan deduction payslip, salary advance recovery payroll, overtime to payslip Odoo, end of service gratuity payroll, payslip input lines, salary structure rule inputs, HR payroll bridge module, automatic payroll deductions Odoo, idempotent payslip recompute, double deduction protection payroll, 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 Odoo Customisation Services • LinkedIn

v1.0.0 · LGPL-3 · Odoo 18 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