odoo-hr-payroll-setup
Skill này làm gì
Hướng dẫn này giúp thiết lập hệ thống nhân sự và bảng lương của Odoo. Nó giải thích cách tạo cấu trúc lương, định nghĩa quy tắc nghỉ phép và cấu hình hợp đồng nhân viên.
Khi nào nên dùng
- ✓Khi tạo một kế hoạch lương mới với các loại thanh toán và khoản khấu trừ khác nhau.
- ✓Khi định nghĩa quy tắc nghỉ phép, nghỉ ốm và ngày lễ.
- ✓Khi các giá trị trên phiếu lương sai hoặc thiếu thông tin.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/odoo-hr-payroll-setup/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Làm sao để thiết lập cấu trúc lương gồm lương gộp, các khoản khấu trừ thuế và lương thực nhận cuối cùng?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI hướng dẫn bạn từng bước cấu hình quy tắc lương và phân bổ ngày nghỉ. Nếu có vấn đề với quy tắc lương hoặc phiếu lương, bạn có thể dán lỗi để AI giúp tìm nguyên nhân.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
…
Câu hỏi thường gặp
“Cấu trúc lương” là gì?
Đây là các mẫu định nghĩa cách tính lương nhân viên, bao gồm lương gộp, các khoản khấu trừ (như thuế) và lương thực nhận.
Quy tắc nghỉ phép (nghỉ phép năm, nghỉ ốm) hoạt động thế nào?
Bạn định nghĩa các loại nghỉ (nghỉ phép, nghỉ ốm), ai phê duyệt, nhân viên có thể yêu cầu không, và số dư có được âm không. Sau đó, bạn phân bổ số ngày cho từng nhân viên.
“Payroll journal entry” là gì?
Đây là bản ghi kế toán cho thấy chi phí lương được phân bổ vào các tài khoản công ty như thế nào, ví dụ chi phí lương và thuế phải trả.
Chi tiết
Mô tả gốc của tác giả
Expert guide for Odoo HR and Payroll: salary structures, payslip rules, leave policies, employee contracts, and payroll journal entries.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #5339
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
obsidian-vault-maintainer
394kGiúp agent của bạn giữ gọn kho ghi nhớ kiểu Obsidian, với liên kết wiki hoạt động tốt, thuộc tính nhất quán và các phần tự tạo an toàn.
wiki-maintainer
394kGiúp agent của bạn duy trì wiki bộ nhớ OpenClaw với các trang có thể lặp lại, khối được quản lý an toàn và kiểm tra mâu thuẫn hoặc thiếu sót.
obsidian
394kCho phép agent của bạn đọc, tìm, tạo và sửa ghi chú, công việc, liên kết và thuộc tính trong Obsidian bằng dòng lệnh Obsidian chính thức.