ever-just/agentskills/everjust-payroll-hr
Claude Code and agent skill by ever-just/agentskills
- community
Checking that the SKILL.md file is still in the repository.
Operate the "Payroll & HR" app of an everjust.app Odoo 19 tenant (hr.employee / hr.payslip / hr.attendance) over the everjust_agent_mcp MCP — read employees and their contracts (now hr.version), pull attendance, generate a payslip batch, compute/confirm/cancel a payslip, and reconcile worked-days against real clocked hours. Use when the task is to look up an employee or their pay/attendance, run or inspect a payroll run, compute or confirm a payslip, or explain why a payslip's "Worked Days" line shows the number it does. This is OCA `payroll` + core `hr`/`hr_attendance`; the everjust twist is `everjust_payroll_attendance`, an auto-installed bridge that OVERRIDES `hr.payslip._compute_worked_days` to source worked days from actual `hr.attendance` records instead of the resource calendar. IMPORTANT: NOT installed on most tenants — only `headsup` has the full stack live; verify install-state first. Cross-references [[everjust-platform]], [[everjust-agent-mcp]], and sibling [[everjust-projects]].
Install
npx vskill@latest install ever-just/agentskills/everjust-payroll-hrSKILL.md
The same SKILL.md was published earlier as ever-just/agentskills/everjust-payroll-hr.
EVERJUST Payroll & HR — Agent Skill
Operate the Payroll & HR app of a live everjust.app tenant as an agent: read employees and their contract "versions", pull real attendance (clock in/out), generate and compute payslips, move a payslip through its state machine, and reconcile the payslip's Worked Days against actual hours. Everything runs through the platform's Odoo MCP (search / get / find / count / create / update / call / describe_model) — see [[everjust-agent-mcp]] for opening the session against the right tenant DB, and [[everjust-platform]] for the platform invariants (one-DB-per-tenant, sudo/ACL boundaries, Odoo-19 API surface) you must not break.
This is mostly stock/OCA: core hr + hr_attendance + hr_holidays, and the OCA `payroll` module (hr.payslip / hr.salary.rule / hr.payslip.run — NOT the Odoo Enterprise hr_payroll, which this fork does not have). The everjust twist is a single small bridge, everjust_payroll_attendance.
Install state — CHECK THIS FIRST (biggest gotcha)
The prompt-era assumption "not installed on either tenant" is stale. Reality (verified live, 2026-07): install state is uneven across tenants, so before any recipe here, confirm the module is actually installed on the DB you're on:
Observed:
| Tenant | hr | payroll | hr_attendance | everjust_payroll_attendance | Bridge active? | |
|---|---|---|---|---|---|---|
| headsup | installed | installed | installed | installed | YES — full stack | |
| burekraft-llc, riftline-labs, trust-works-company, weldon | installed | installed | not installed | not installed | no (no attendance) | |
| connectdomain | installed | not installed | not installed | not installed | no payroll at all | |
| tcstartupweek | not installed | not installed | not installed | not installed | no HR at all |
Consequences you must respect:
- `everjust_payroll_attendance` is `auto_install=True` and its
dependsinclude
`hr_attendance` (plus payroll, hr_work_entry). It therefore installs itself ONLY once hr_attendance is also present. On the four "payroll-but-no-attendance" tenants the bridge is dormant — payslips there use the stock calendar-based _compute_worked_days, not attendance.
- On headsup the bridge IS in the live
hr.payslipMRO (verified — the override's
source is the one that runs). But headsup currently has 0 salary structures, 0 salary rules, 0 attendances, 0 payslips: the app is installed but unconfigured and un-operated. Computing a payslip with no structure yields an empty payslip (see Pitfalls). Treat "installed" ≠ "ready to pay".
- If the task targets a tenant where payroll isn't installed, stop — installing a
module is platform-ops (add to the deploy manifest + -u), not an ORM call you make from here. See [[everjust-platform]].
Key models (real _names and the fields that matter)
Odoo-19 renamed the contract model: a "contract" is an `hr.version`, not the old hr.contract. Every payroll contract_id (on payslip, worked-days line, and elsewhere) points to hr.version. This is the #1 field-name trap.
| Model | Role | Notable fields (introspected live) | |
|---|---|---|---|
hr.employee | The person. | name, user_id(→res.users), company_id(req), department_id, job_id, resource_calendar_id(→resource.calendar, "Working Hours"), attendance_ids(→hr.attendance), hourly_cost(monetary), work_email, active, `version_id`(req, →hr.version = current contract), current_version_id, version_ids | |
hr.version | The contract (Odoo-19 name). Payroll reads struct_id, schedule_pay, resource_calendar_id, date_start. | struct_id(→hr.payroll.structure), schedule_pay(monthly/weekly/…), resource_calendar_id, wage, date_start | |
hr.attendance | One clock-in/out span. The bridge's data source. | employee_id(req), check_in(datetime, req), check_out(datetime), `worked_hours`(float — computed span the bridge SUMS), in_mode/out_mode(selection: how they clocked), company_id | |
hr.payslip | One employee's slip for one period. | name, number(ref seq salary.slip), employee_id(req), contract_id(→hr.version), struct_id(→hr.payroll.structure), date_from/date_to(req), `state`(draft/verify/done/cancel), worked_days_line_ids, line_ids(→hr.payslip.line, computed), input_line_ids, payslip_run_id, credit_note, refunded_id, compute_date, paid | |
hr.payslip.worked_days | The Worked-Days lines — what the bridge writes. | name, code(req — bridge writes `"ATTN"`), sequence, number_of_days(float), number_of_hours(float), contract_id(→hr.version), payslip_id | |
hr.payslip.line | Computed money lines (one per salary rule). Read-only; produced by compute_sheet. | salary_rule_id, code, amount, quantity, rate, total, slip_id, category_id | |
hr.payslip.run | A batch of payslips for a period. | name, slip_ids(→hr.payslip), date_start/date_end, struct_id, credit_note, `state`(only draft/close — NOT the payslip's states) | |
hr.payroll.structure | Salary structure = a set of rules. Payslips need one or compute nothing. | name, code, rule_ids(→hr.salary.rule), parent_id | |
hr.salary.rule | One computation rule (Python/fixed/percentage). | name, code, category_id, amount_select, amount_python_compute, condition_select | |
account.analytic.line | Timesheets / analytic entries — NOT attendance. Shared with Projects. | name(req), date(req), unit_amount(float=hours), employee_id, project_id, task_id, company_id(req) |
`hr.attendance` and `account.analytic.line` are independent here. This tenant has no hr_attendance_timesheet-style bridge, so clocking in does not create an analytic line, and the payroll bridge reads `hr.attendance`, not timesheets. Analytic lines are the Projects/timesheet world — see [[everjust-projects]]. Don't reconcile payroll worked days against account.analytic.line; reconcile against hr.attendance.worked_hours.
How the everjust bridge changes payroll (the one thing that's non-stock)
everjust_payroll_attendance/models/hr_payslip.py inherits hr.payslip and overrides `_compute_worked_days(contract, day_from, day_to)`. During compute_sheet the OCA flow calls get_worked_day_lines → _compute_worked_days; the override:
- Searches
hr.attendancefor the employee wherecheck_inis within `[day_from,
day_to] **and check_out != False`** (open/un-clocked-out spans are ignored).
- If no such attendances →
super()→ stock calendar-based worked days
(so salaried employees without a clock are unaffected). This fall-through is why the four attendance-less tenants behave stock even though they run payroll.
- If attendances exist → returns ONE worked-days dict:
name="Attendance", code="ATTN", sequence=1, number_of_days = count of DISTINCT check-in dates, number_of_hours = sum(worked_hours), contract_id = contract.id.
So on headsup a computed payslip's worked_days_line_ids will contain an `ATTN` line whose hours equal real clocked hours and whose days equal distinct clock-in days — that is the everjust behavior to expect and to explain. The money lines (line_ids) still come from the salary structure's rules multiplying against these worked days.
Recipes
Route each through the Odoo MCP against the tenant DB (see [[everjust-agent-mcp]]). create/update/call are shown as MCP verbs; call invokes a model method.
1. Look up an employee, their contract, and clocked attendance for a period
2. Generate a payroll batch and compute everyone's slip (the correct path)
Do NOT hand-build payslips row by row. Create a run, then call the OCA by-employees wizard, which builds each slip via get_payslip_vals (this is where the attendance bridge fires) and computes them.
3. Compute / confirm / cancel a single payslip (its state machine)
hr.payslip.state: `draft` → `verify` → `done`, or → cancel. compute_sheet is what moves draft → verify AND (re)builds all lines; action_payslip_done re-computes (unless prevent_compute_on_confirm) then locks to done.
For bulk state changes across many slips, the OCA wizard hr.payslip.change.state (change_state_confirm, state ∈ draft/verify/done/cancel, with active_ids in context) applies the same guarded transitions to a selection.
4. Explain a payslip's Worked Days (attendance vs. calendar reconciliation)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/everjust-payroll-hr/SKILL.md
Popularity
- Repository stars
- 3
- Repository forks
- 1
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ever-just/agentskills/everjust-payroll-hr)