Employee Loans and Salary Advances: Instalments, Approval and Payroll Deduction List
by Aerya IT Solutions https://aerya.net$ 54.79
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
Employee Loans and Salary Advances: Instalments, Approval and Payroll Deduction List
Lend or advance money to employees with a request, an approval, a monthly schedule and the deductions your payroll needs, with optional accounting entries.
Interest free or with interest, schedule printed as a PDF
Deduction list as CSV, PDF or a hook for your payroll
Early payoff, balance on the employee, journal entries
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 18 Enterprise with the data of a fictitious company. The module works on Community and Enterprise.
schedules, approval, repayments, payoff, deductions, entries, security, browser
Odoo core only (Employees, Accounting), no payroll module needed
code review against Odoo's security rules, findings fixed
no warnings
A schedule for every loan, interest free or with interest
Pick the amount and the number of monthly instalments. Without interest the amount is split in equal parts; with a yearly rate the instalments are equal and show the interest of each month. The schedule shows what is repaid and what is left, and prints as a PDF.
A salary advance is a loan of one instalment, with a limit of one open at a time if you want it.

Deduction list for the payroll you already use
Load every instalment due in a period, earlier missed ones included. Remove a line for an employee on unpaid leave, or deduct less. Export a CSV or a PDF for your payroll, or call two methods from your own payroll rules and payslips.
Confirming the list registers the repayments once. A payslip reference is never deducted twice.

Early repayment that drops the interest not yet earned
Pay a part by bank or cash and it goes to the oldest instalments. To close a loan early, the full payoff shows the amount and the interest it drops. A repayment can be cancelled: its entry is reversed and the schedule opens again.

Who owes what
The balance of each employee sits on the employee form and in a pivot by employee and type. Employees see their own requests only; managers see everything.

More screenshots

A request waiting for approval

Repayments registered through payroll deductions

Instalments to deduct, overdue ones in red

The balance owed on the employee form

A loan type with its limits and accounts

The journal entry of a payroll deduction
The problem: staff loans and advances kept in a spreadsheet
A company lends an employee money for a deposit or a family emergency, or advances part of a salary. The amount, the number of instalments and the monthly deduction are agreed in a message, written in a spreadsheet, and passed to payroll by hand. Months later nobody knows what the employee still owes, an instalment is deducted twice or forgotten, and the accountant has no entry for the money that went out.
What the module does
Employee Loans and Salary Advances turns the request into a flow in Odoo: the employee asks, a loans manager approves, the money is paid out, a monthly schedule is built, and the instalments come back through your payroll or through bank and cash repayments. The balance of each employee is always on their form, and accounting entries are optional per loan type.
How it works, step by step
- Set up a loan type in Loans > Configuration > Loan types: loan or advance, maximum amount, maximum instalments, how many may be open at the same time, default interest and, if you want entries, the accounts and journals.
- The employee asks. In the Loans app they choose the type, the amount, the monthly instalments and the first deduction date.
- A loans manager decides. Approve, or Refuse with a reason. Nobody approves their own request.
- Pay out. Pay out records the money that leaves. Without interest the amount is split in equal parts. With a yearly rate the instalments are equal (annuity) and show the interest of each month. Print schedule gives the PDF.
- Each month, load the deductions. Loans > Payroll deductions: Load due instalments loads every instalment due in the period, earlier missed ones too. Remove a line for an employee on unpaid leave or deduct less, then Export CSV or print the list for your payroll.
- Confirm deductions. The repayments are registered once, the balance of each employee drops, and the entries are posted when the type has accounts. A payroll that runs inside Odoo calls two methods from a salary rule instead.
- Other repayments. Register a repayment by bank or cash: it goes to the oldest instalments. A full early payoff shows the amount and drops the interest not yet earned. Cancel repayment reverses its entry and reopens the schedule.
Details that matter
- A salary advance is a loan of one instalment, with no interest, and you can limit it to one open at a time.
- The payroll hook. employee._hra_deduction_amount(date_to) returns what is due and unpaid, and employee._hra_register_deduction(date_to, reference) registers it when the payslip is confirmed. The reference must be unique per payslip: a payslip reference is never deducted twice. You can pass the amount the payslip really deducted, booked oldest instalment first. _hra_cancel_deduction(reference) undoes a cancelled or refunded payslip. No payroll module is needed.
- Optional accounting. A type with an employee loans account posts the payout (loans account against the bank or cash journal), the payroll deductions (salaries payable against the loans account) and the bank or cash repayments, with the interest on its own income account. A type without it posts nothing.
- Interest. The first instalment carries a full month of interest. A full early payoff drops the interest of every instalment not yet due on the payoff date, and the interest of an instalment already due is paid.
- Locked after approval. The amount, the instalments and the employee cannot change once a request is approved.
Settings and access
The Loans and advances manager group is implied by HR Manager. Every other internal user sees and edits only their own draft requests; approval, payout and repayments are for managers, with rules per company on every model. Journal entries are created with elevated rights, so a manager without accounting rights can pay out and register repayments. The accounts and journals of a loan type are set only by users with accounting rights. The two default loan types are created for the company where the module is installed; other companies create their own.
What it does not do
- It stops a request above the type limit, with more instalments than the type allows, or with too many open requests of one type.
- It stops the approval of your own request, a change of amount, instalments or employee after approval, and the cancellation of a loan that has repayments.
- It stops paying ahead on a loan with interest (use the full payoff) and paying more than what is owed. A salary advance carries no interest.
- It does not enforce any legal limit on deductions from a salary: check the rules of your country and use the maximum amount and instalments of the loan type.
- Amounts are in the company currency only, and interest is a yearly rate split in monthly instalments.
Requirements
Odoo 17, 18, 19 and 20, Community and Enterprise. It needs the core Employees, Accounting and Discuss apps (hr, account, mail) and no payroll module. It has Python code, so it runs on Odoo.sh and on-premise, not on Odoo Online. Languages: English, Spanish and Romanian.
Questions
Do I need a payroll module?
No. Export the deduction list as CSV or PDF, or call the two methods from your own payroll rules.
Can an employee have several loans?
Yes, within the limit of open requests that the loan type sets.
Can an employee repay early?
Yes. Use the full early payoff: it drops the interest not yet earned.
Does it post accounting entries?
Only for loan types that have an employee loans account. A type without it posts nothing.
What if a repayment was entered by mistake?
Cancel repayment reverses its entry and reopens the schedule.
What happens if I uninstall it?
The loans, schedules and repayments are removed with the module, so print what you need first.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 18, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Developed in the European Union by Aerya IT Solutions, Odoo implementation and development. aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Employees (hr) • Invoicing (account) |
| Lines of code | 2235 |
| Technical Name |
aerya_hr_advance |
| 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