odoo-hr-payroll-setup
What it does
This guide helps set up Odoo's HR and payroll system. It explains how to create salary structures, define rules for time off, and configure employee contracts.
When to use it
- βWhen creating a new salary plan with different types of payments and deductions.
- βWhen defining rules for vacation, sick leave, and holidays.
- βWhen values in the payslip are incorrect or missing information.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/odoo-hr-payroll-setup/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βHow do I set up a salary structure that includes gross pay, tax deductions, and the final net salary?β
5 new skills a week. 1 minute to read.
How it works
The AI guides you step-by-step in configuring salary rules and allocating time off. If there's an issue with a salary rule or payslip, you can paste the error for the AI to help find the cause.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Odoo HR & Payroll Setup
Overview
This skill guides HR managers and payroll accountants through setting up Odoo HR and Payroll correctly. It covers salary structure creation with Python-computed rules, time-off policies, employee contract types, and the payroll β accounting journal posting flow.
When to Use This Skill
- Creating a salary structure with gross pay, deductions, and net pay.
- Configuring annual leave, sick leave, and public holiday policies.
- Troubleshooting incorrect payslip amounts or missing rule contributions.
- Setting up the payroll journal to correctly post to accounting.
How It Works
- Activate: Mention
@odoo-hr-payroll-setupand describe your payroll scenario. - Configure: Receive step-by-step setup for salary rules and leave allocation.
- Debug: Paste a salary rule or payslip issue and receive a root cause analysis.
Examples
Example 1: Salary Structure with Deductions
Menu: Payroll β Configuration β Salary Structures β New
Name: US Employee Monthly
Payslip Code: MONTHLY
Rules (executed top-to-bottom β order matters):
Code | Name | Formula | Category
----- | ---------------------- | ------------------------------ | ---------
BASIC | Basic Wage | contract.wage | Basic
GROSS | Gross | BASIC | Gross
SS | Social Security (6.2%) | -GROSS * 0.062 | Deduction
MED | Medicare (1.45%) | -GROSS * 0.0145 | Deduction
FIT | Federal Income Tax | -GROSS * inputs.FIT_RATE.amount| Deduction
NET | Net Salary | GROSS + SS + MED + FIT | Net
Federal Income Tax: The standard Odoo US localization does not expose a single
l10n_us_w4_ratefield. Use an input (salary input type) to pass the withholding rate per employee, or install a community US payroll module (OCAl10n_us_hr_payroll) which handles W4 filing status properly.
Example 2: Configure a Time Off Type
Menu: Time Off β Configuration β Time Off Types β New
Name: Annual Leave / PTO
Approval: Time Off Officer
Leave Validation: Time Off Officer (single approver)
or: "Both" for HR + Manager double approval
Allocation:
β Employees can allocate time off themselves
Requires approval: No
Negative Balance: Not allowed (employees cannot go negative)
Then create initial allocations:
Menu: Time Off β Managers β Allocations β New
Employee: [Each employee]
Time Off Type: Annual Leave / PTO
Allocation: 15 days
Validity: Jan 1 β Dec 31 [current year]
Example 3: Payroll Journal Entry Result
After validating a payroll batch, Odoo generates:
Debit Salary Expense Account $5,000.00
Credit Social Security Payable $310.00
Credit Medicare Payable $72.50
Credit Federal Tax Payable (varies)
Credit Salary Payable $4,617.50+
When net salary is paid:
Debit Salary Payable $4,617.50
Credit Bank Account $4,617.50
Employer taxes (e.g., FUTA, SUTA) post as separate journal entries.
Best Practices
- β
Do: Install your country's payroll localization (
l10n_us_hr_payroll,l10n_mx_hr_payroll, etc.) before building custom rules β it provides pre-configured tax structures. - β
Do: Use salary rule inputs (
inputs.ALLOWANCE.amount) to pass variable values (bonuses, allowances, withholding rates) rather than hardcoding them in the rule formula. - β Do: Archive old salary structures rather than deleting them β active payslips reference their structure and will break if the structure is deleted.
- β Do: Always set an active Employee Contract with correct dates and salary before generating payslips.
- β Don't: Manually edit posted payslips β cancel and regenerate the payslip batch if corrections are needed.
- β Don't: Use
contract.wagein deduction rules without verifying whether the structure is monthly or annual β always check the contract wage period.
Limitations
- Odoo Payroll is Enterprise-only β the Community Edition does not include the Payroll module (
hr_payroll). - US-specific compliance (W2, 941, state SUI/SDI filing) requires additional modules beyond the base localization; Odoo does not generate tax filings directly.
β¦
FAQ
What are 'salary structures'?
These are templates that define how an employee's salary is calculated, including gross pay, deductions (like taxes), and the net pay to be issued.
How do time off rules (vacation, sick leave) work?
You define the types of absence (vacation, illness), who approves them, if employees can request them, and if the balance can go negative. Then, you allocate days for each employee.
What is a 'payroll journal entry'?
This is the accounting record showing how payroll costs are distributed across company accounts, such as salary expenses and taxes payable.
Details
Original description by the author
Expert guide for Odoo HR and Payroll: salary structures, payslip rules, leave policies, employee contracts, and payroll journal entries.
Popularity
- GitHub stars
- 48k
- Ranking position
- #5339
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
obsidian-vault-maintainer
394kHelps your agent keep an Obsidian-friendly memory vault tidy, with working wiki links, consistent properties, and safe generated sections.
wiki-maintainer
394kHelps your agent maintain an OpenClaw memory wiki with repeatable pages, safe managed blocks, and checks for contradictions or gaps.
obsidian
394kLets your agent read, search, create, and edit Obsidian notes, tasks, links, and properties using the official Obsidian command line.