跳到正文
Skillpedia
写作48k · #5339

odoo-hr-payroll-setup

它能做什么

这份指南可以帮你设置 Odoo 的人事和薪资系统。内容包括如何创建薪资结构、定义休假规则,以及配置员工合同。

适用场景

  • ✓创建包含不同收入和扣款类型的新薪资方案时。
  • ✓制定年假、病假和节假日等规则时。
  • ✓工资单中的数值错误或信息缺失时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/odoo-hr-payroll-setup/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/odoo-hr-payroll-setup/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我该如何设置一个薪资结构,包含应发工资、个人所得税扣除和最终实发工资?”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会一步步指导你配置薪资规则和分配假期。如果薪资规则或工资单出现问题,你可以把错误信息粘贴给 AI,让它帮你找出原因。

技术内容(原始 SKILL.md)

作者在 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

  1. Activate: Mention @odoo-hr-payroll-setup and describe your payroll scenario.
  2. Configure: Receive step-by-step setup for salary rules and leave allocation.
  3. 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.

…

常见问题

什么是“薪资结构”?

它是一种模板,用于定义员工薪资的计算方式,包括应发工资、扣款(如个人所得税)以及最终要发放的实发工资。

休假规则(年假、病假)是如何运作的?

你需要定义假期类型(年假、病假)、由谁审批、员工是否可以申请,以及假期余额能否为负数。然后为每位员工分配假期天数。

什么是“薪资会计分录”?

这是会计记录,显示薪资成本如何分摊到公司的各个科目中,比如工资费用和应交税费。

详情

作者的原始描述

Expert guide for Odoo HR and Payroll: salary structures, payslip rules, leave policies, employee contracts, and payroll journal entries.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5339
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能