How 7cc8/odoo-hr-agents works
The repository’s documented MVP is a guarded Excel-to-Odoo employee-creation workflow: parse and normalize input, validate it against Odoo, produce a dry-run report, bind human approval to that report, then create and read back records with audit output. Alongside it, the README describes a unified chat/dashboard and an eight-agent LangGraph experience, plus broader HR service capabilities. The graph keeps those product surfaces distinct; unsampled service internals and some dashboard wiring are represented conservatively.
Main entry points: seraj_meta_agent.py Seraj orchestrator · web_service.py Unified web service · agentic_nodes.py LangGraph workflow · writer.py Restricted writer
Components 34
Employee onboarding
- Excel parser
parser.py - Data normalization
normalization.py - Validation and matching
validator.py - Dry-run reports
dry_run_report.py - Approval creation
make_approval.py - Approval verification
approval_schema.py - Restricted writer
writer.py
Agent orchestration
- Unified web service
web_service.py - LangGraph workflow
graph/agentic_nodes.py - Workflow state
graph/state.py - Seraj orchestrator
agents/seraj_meta_agent.py - Fahas tools agent
agents/fahas_agent.py - Hares security agent
agents/hares_agent.py - Katib execution agent
agents/katib_agent.py - Mudaqqiq compliance
agents/mudaqqiq_agent.py - Musleh repair agent
agents/musleh_agent.py - Muwaffaq matching
agents/muwaffaq_agent.py - Sijil log agent
agents/sijil_agent.py - LLM provider
agents/llm_provider.py - LLM configuration
llm_config_manager.py
Odoo and HR services
- Create/read gateway
odoo_write_gateway.py - Environment guard
environment_policy.py - Odoo read repository
odoo_readonly_repository.py - Saudi labor rules
saudi_labor_law_rules.py - Leave service
leave_service.py - Attendance service
attendance_service.py - Contract service
contract_service.py - Payroll service
payroll_service.py
Audit and operations
- JSONL audit
sijil_audit_service.py - Agent events
agent_events_service.py - Event JSONL
agents/agent_events_service.py
Other components
- HR reviewer
- Employee workbook
- Odoo HR
Connections 37
- HR reviewer → Employee workbook: provides
README.md - Employee workbook → Excel parser: uploads
README.md - Excel parser → Data normalization: normalizes
parser.py - Excel parser → Validation and matching: passes rows
README.md - Validation and matching → Odoo read repository: matches against
README.md - Validation and matching → Dry-run reports: reports results
README.md - HR reviewer → Approval creation: selects accepted rows
README.md - Dry-run reports → Approval creation: binds approval
README.md - Approval creation → Approval verification: creates approval
README.md - Approval verification → Restricted writer: authorizes rows
README.md - Restricted writer → Environment guard: checks environment
README.md - Restricted writer → Create/read gateway: creates and reads
README.md - Create/read gateway → Odoo HR: mutates and reads
README.md - Restricted writer → JSONL audit: records outcome
README.md - HR reviewer → Unified web service: chats or uploads
README.md - Unified web service → LangGraph workflow: routes workflow
web_service.py - LangGraph workflow → Workflow state: updates state
graph/agentic_nodes.py - LangGraph workflow → Seraj orchestrator: invokes agents
graph/agentic_nodes.py - Seraj orchestrator → Fahas tools agent: delegates tools
agents/seraj_meta_agent.py - Seraj orchestrator → Hares security agent: delegates security
agents/seraj_meta_agent.py - Seraj orchestrator → Katib execution agent: delegates execution
agents/seraj_meta_agent.py - Seraj orchestrator → Mudaqqiq compliance: delegates compliance
agents/seraj_meta_agent.py - Seraj orchestrator → Musleh repair agent: delegates repair
agents/seraj_meta_agent.py - Seraj orchestrator → Muwaffaq matching: delegates matching
agents/seraj_meta_agent.py - Seraj orchestrator → Sijil log agent: delegates logging
agents/seraj_meta_agent.py - LangGraph workflow → Hares security agent: checks write plan
graph/agentic_nodes.py - LangGraph workflow → Agent events: emits events
graph/agentic_nodes.py - Agent events → Event JSONL: records agent events
agent_events_service.py - Seraj orchestrator → LLM provider: uses language model
- LLM provider → LLM configuration: loads configuration
agents/llm_provider.py - Fahas tools agent → Odoo read repository: queries Odoo
- Odoo read repository → Odoo HR: reads HR data
odoo_readonly_repository.py - Mudaqqiq compliance → Saudi labor rules: checks legal rules
agents/mudaqqiq_agent.py - Unified web service → Leave service: exposes HR service
web_service.py - Unified web service → Attendance service: exposes HR service
web_service.py - Unified web service → Contract service: exposes HR service
web_service.py - Unified web service → Payroll service: exposes HR service
web_service.py