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-setup and 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_rate field. Use an input (salary input type) to pass the withholding rate per employee, or install a community US payroll module (OCA l10n_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.wage in 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.
- Does not cover multi-country payroll (employees in different countries require separate structures and localizations).
- Expense reimbursements via payslip (e.g., mileage, home office) require a custom salary rule input and are not covered in standard HR Payroll documentation.
1---
2name: odoo-hr-payroll-setup
3description: "Expert guide for Odoo HR and Payroll: salary structures, payslip rules, leave policies, employee contracts, and payroll journal entries."
4version: 1.0.0
5author:
6 name: "sickn33 / Antigravity Community"
7 github: sickn33
8tags: [odoo, payroll, setup, business]
9category: business
10platforms: [macos, linux, windows]
11license: MIT
12metadata:
13 hermes:
14 source: https://skillmd.com/skills/nous-hermeshub/odoo-hr-payroll-setup
15 upstream: "antigravity-awesome-skills"
16 risk: "safe"
17 original_author: "Antigravity Community"
18---
19
20# Odoo HR & Payroll Setup
21
22## Overview
23
24This 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.
25
26## When to Use This Skill
27
28- Creating a salary structure with gross pay, deductions, and net pay.
29- Configuring annual leave, sick leave, and public holiday policies.
30- Troubleshooting incorrect payslip amounts or missing rule contributions.
31- Setting up the payroll journal to correctly post to accounting.
32
33## How It Works
34
351. **Activate**: Mention `@odoo-hr-payroll-setup` and describe your payroll scenario.
362. **Configure**: Receive step-by-step setup for salary rules and leave allocation.
373. **Debug**: Paste a salary rule or payslip issue and receive a root cause analysis.
38
39## Examples
40
41### Example 1: Salary Structure with Deductions
42
43```text
44Menu: Payroll → Configuration → Salary Structures → New
45
46Name: US Employee Monthly
47Payslip Code: MONTHLY
48
49Rules (executed top-to-bottom — order matters):
50 Code | Name | Formula | Category
51 ----- | ---------------------- | ------------------------------ | ---------
52 BASIC | Basic Wage | contract.wage | Basic
53 GROSS | Gross | BASIC | Gross
54 SS | Social Security (6.2%) | -GROSS * 0.062 | Deduction
55 MED | Medicare (1.45%) | -GROSS * 0.0145 | Deduction
56 FIT | Federal Income Tax | -GROSS * inputs.FIT_RATE.amount| Deduction
57 NET | Net Salary | GROSS + SS + MED + FIT | Net
58```
59
60> **Federal Income Tax:** The standard Odoo US localization does not expose a single `l10n_us_w4_rate` field. Use an **input** (salary input type) to pass the withholding rate per employee, or install a community US payroll module (OCA `l10n_us_hr_payroll`) which handles W4 filing status properly.
61
62### Example 2: Configure a Time Off Type
63
64```text
65Menu: Time Off → Configuration → Time Off Types → New
66
67Name: Annual Leave / PTO
68Approval: Time Off Officer
69Leave Validation: Time Off Officer (single approver)
70 or: "Both" for HR + Manager double approval
71
72Allocation:
73 ☑ Employees can allocate time off themselves
74 Requires approval: No
75
76Negative Balance: Not allowed (employees cannot go negative)
77
78Then create initial allocations:
79Menu: Time Off → Managers → Allocations → New
80 Employee: [Each employee]
81 Time Off Type: Annual Leave / PTO
82 Allocation: 15 days
83 Validity: Jan 1 – Dec 31 [current year]
84```
85
86### Example 3: Payroll Journal Entry Result
87
88```text
89After validating a payroll batch, Odoo generates:
90
91Debit Salary Expense Account $5,000.00
92 Credit Social Security Payable $310.00
93 Credit Medicare Payable $72.50
94 Credit Federal Tax Payable (varies)
95 Credit Salary Payable $4,617.50+
96
97When net salary is paid:
98Debit Salary Payable $4,617.50
99 Credit Bank Account $4,617.50
100
101Employer taxes (e.g., FUTA, SUTA) post as separate journal entries.
102```
103
104## Best Practices
105
106- ✅ **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.
107- ✅ **Do:** Use **salary rule inputs** (`inputs.ALLOWANCE.amount`) to pass variable values (bonuses, allowances, withholding rates) rather than hardcoding them in the rule formula.
108- ✅ **Do:** Archive old salary structures rather than deleting them — active payslips reference their structure and will break if the structure is deleted.
109- ✅ **Do:** Always set an active **Employee Contract** with correct dates and salary before generating payslips.
110- ❌ **Don't:** Manually edit posted payslips — cancel and regenerate the payslip batch if corrections are needed.
111- ❌ **Don't:** Use `contract.wage` in deduction rules without verifying whether the structure is monthly or annual — always check the contract wage period.
112
113## Limitations
114
115- **Odoo Payroll is Enterprise-only** — the Community Edition does not include the Payroll module (`hr_payroll`).
116- US-specific compliance (W2, 941, state SUI/SDI filing) requires additional modules beyond the base localization; Odoo does not generate tax filings directly.
117- Does not cover **multi-country payroll** (employees in different countries require separate structures and localizations).
118- **Expense reimbursements** via payslip (e.g., mileage, home office) require a custom salary rule input and are not covered in standard HR Payroll documentation.