ever-just/agentskills/everjust-payroll-hr

Claude Code and agent skill by ever-just/agentskills

Trust tier 3
  • community
Source check pending

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-hr

SKILL.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:

# via MCP: find on ir.module.module, or just describe_model('hr.payslip')
find("ir.module.module",
[["name","in",["payroll","hr_attendance","everjust_payroll_attendance"]]],
["name","state"])

Observed:

Tenanthrpayrollhr_attendanceeverjust_payroll_attendanceBridge active?
headsupinstalledinstalledinstalledinstalledYES — full stack
burekraft-llc, riftline-labs, trust-works-company, weldoninstalledinstallednot installednot installedno (no attendance)
connectdomaininstallednot installednot installednot installedno payroll at all
tcstartupweeknot installednot installednot installednot installedno HR at all

Consequences you must respect:

  • `everjust_payroll_attendance` is `auto_install=True` and its depends include

`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.payslip MRO (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.

ModelRoleNotable fields (introspected live)
hr.employeeThe 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.versionThe 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.attendanceOne 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.payslipOne 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_daysThe 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.lineComputed 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.runA 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.structureSalary structure = a set of rules. Payslips need one or compute nothing.name, code, rule_ids(→hr.salary.rule), parent_id
hr.salary.ruleOne computation rule (Python/fixed/percentage).name, code, category_id, amount_select, amount_python_compute, condition_select
account.analytic.lineTimesheets / 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:

  1. Searches hr.attendance for the employee where check_in is within `[day_from,

day_to] **and check_out != False`** (open/un-clocked-out spans are ignored).

  1. 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.

  1. 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
# Find the employee
emp = find("hr.employee", [["name","ilike","Jordan"]],
["name","work_email","department_id","job_id","hourly_cost",
"version_id","resource_calendar_id"], limit=5)
# The contract is the current hr.version (NOT hr.contract):
get("hr.version", emp[0]["version_id"][0],
["struct_id","schedule_pay","wage","resource_calendar_id","date_start"])
# Real clocked spans in July 2026 (closed spans only — the bridge ignores open ones):
find("hr.attendance",
[["employee_id","=",emp[0]["id"]],
["check_in",">=","2026-07-01 00:00:00"],
["check_in","<=","2026-07-31 23:59:59"],
["check_out","!=",false]],
["check_in","check_out","worked_hours","in_mode"], order="check_in")
# What the payslip WILL show as worked days (mirror the bridge yourself):
# number_of_hours = sum(worked_hours); number_of_days = distinct check_in dates.
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.

# Preconditions: a salary structure with rules must exist, else slips compute empty.
struct = find("hr.payroll.structure", [], ["name"], limit=1) # must be non-empty!
run = create("hr.payslip.run", {
"name": "July 2026 Payroll",
"date_start": "2026-07-01",
"date_end": "2026-07-31",
"struct_id": struct[0]["id"],
})
# Build + compute slips for chosen employees, in the run's context (active_id = run):
emp_ids = [e["id"] for e in find("hr.employee", [["active","=",true]], ["id"])]
wiz = create("hr.payslip.employees", {"employee_ids": [[6,0,emp_ids]]})
call("hr.payslip.employees", "compute_sheet", [[wiz]], {"context": {"active_id": run["id"]}})
# Inspect results — each slip now has worked-days lines (ATTN if attendance existed):
slips = find("hr.payslip", [["payslip_run_id","=",run["id"]]],
["employee_id","state","number","date_from","date_to"])
get("hr.payslip", slips[0]["id"], ["worked_days_line_ids","line_ids"])
find("hr.payslip.worked_days", [["payslip_id","=",slips[0]["id"]]],
["code","name","number_of_days","number_of_hours"]) # look for code == "ATTN"
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.

# From a draft slip: compute it (draft -> verify, fills worked_days + money lines)
call("hr.payslip", "compute_sheet", [[slip_id]])
get("hr.payslip", slip_id, ["state","number","line_ids"]) # state == "verify"
# Confirm (verify/draft -> done). Recomputes first unless prevent_compute_on_confirm.
call("hr.payslip", "action_payslip_done", [[slip_id]]) # state == "done"
# Reset a rejected slip back to draft (ONLY works from state == "cancel"):
call("hr.payslip", "action_payslip_draft", [[slip_id]])
# Cancel. A "done" slip can only be cancelled if the payroll.allow_cancel_payslips
# ir.config_parameter is set; otherwise this raises UserError.
call("hr.payslip", "action_payslip_cancel", [[slip_id]])

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ever-just/agentskills/everjust-payroll-hr/badge)](https://verified-skill.com/skills/ever-just/agentskills/everjust-payroll-hr)

Something wrong with this skill or its page? Tell us.