# abinayar-30/demos architecture

> Architecture diagram of the GitHub repository abinayar-30/demos, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abinayar-30/demos
- Repository: https://github.com/abinayar-30/demos

## Overview

Dayflow HRMS is an Odoo addon scaffold for employee, attendance, leave, payroll, and dashboard capabilities. Its visible Python models mostly declare inherited Odoo models or placeholders; the tree also contains views, reports, security configuration, and a leave-approval wizard. The sampled files show addon imports, but not runtime links from UI, reports, security, or controllers to domain models. Those relationships are therefore not asserted.

Main entry points: [`backend/addons/dayflow_hrms/models/employee.py`](https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/models/employee.py) (Employees), [`backend/addons/dayflow_hrms/models/attendance.py`](https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/models/attendance.py) (Attendance), [`backend/addons/dayflow_hrms/models/leave.py`](https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/models/leave.py) (Leave), [`backend/addons/dayflow_hrms/models/payroll.py`](https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/models/payroll.py) (Payroll)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_domain["HR domains"]
  node_employees["Employees<br/>[employee.py]"]
  node_attendance["Attendance<br/>[attendance.py]"]
  node_leave["Leave<br/>[leave.py]"]
  node_payroll["Payroll<br/>[payroll.py]"]
  node_dashboard["Dashboard model<br/>[dashboard.py]"]
end

subgraph group_interaction["User interaction"]
  node_auth["Auth controller<br/>[auth_controller.py]"]
  node_dashboard_controller["Dashboard controller"]
  node_leave_wizard["Leave approval<br/>[leave_approval.py]"]
  node_views["HR views"]
end

subgraph group_governance["Access and reporting"]
  node_security["Access rules"]
  node_reports["HR reports"]
end

node_odoo["Odoo platform"]

node_odoo -->|"loads model"| node_employees
node_odoo -->|"loads model"| node_attendance
node_odoo -->|"loads model"| node_leave
node_odoo -->|"loads model"| node_payroll
node_odoo -->|"loads model"| node_dashboard
node_odoo -->|"loads controller"| node_auth
node_odoo -->|"loads controller"| node_dashboard_controller
node_odoo -->|"loads wizard"| node_leave_wizard

click node_employees "https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/models/employee.py"
click node_attendance "https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/models/attendance.py"
click node_leave "https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/models/leave.py"
click node_payroll "https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/models/payroll.py"
click node_dashboard "https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/models/dashboard.py"
click node_auth "https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/controllers/auth_controller.py"
click node_dashboard_controller "https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/controllers/dashboard_controller.py"
click node_leave_wizard "https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/wizard/leave_approval.py"
click node_views "https://github.com/abinayar-30/demos/tree/main/backend/addons/dayflow_hrms/views"
click node_security "https://github.com/abinayar-30/demos/tree/main/backend/addons/dayflow_hrms/security"
click node_reports "https://github.com/abinayar-30/demos/tree/main/backend/addons/dayflow_hrms/reports"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_employees,node_attendance,node_leave,node_payroll,node_dashboard toneBlue
class node_auth,node_dashboard_controller,node_leave_wizard,node_views toneAmber
class node_security,node_reports toneMint
class node_odoo toneIndigo
```

## Components

### HR domains

- [Employees](https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/models/employee.py): `backend/addons/dayflow_hrms/models/employee.py`
- [Attendance](https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/models/attendance.py): `backend/addons/dayflow_hrms/models/attendance.py`
- [Leave](https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/models/leave.py): `backend/addons/dayflow_hrms/models/leave.py`
- [Payroll](https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/models/payroll.py): `backend/addons/dayflow_hrms/models/payroll.py`
- [Dashboard model](https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/models/dashboard.py): `backend/addons/dayflow_hrms/models/dashboard.py`

### User interaction

- [Auth controller](https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/controllers/auth_controller.py): `backend/addons/dayflow_hrms/controllers/auth_controller.py`
- [Dashboard controller](https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/controllers/dashboard_controller.py): `backend/addons/dayflow_hrms/controllers/dashboard_controller.py`
- [Leave approval](https://github.com/abinayar-30/demos/blob/main/backend/addons/dayflow_hrms/wizard/leave_approval.py): `backend/addons/dayflow_hrms/wizard/leave_approval.py`
- [HR views](https://github.com/abinayar-30/demos/tree/main/backend/addons/dayflow_hrms/views): `backend/addons/dayflow_hrms/views`

### Access and reporting

- [Access rules](https://github.com/abinayar-30/demos/tree/main/backend/addons/dayflow_hrms/security): `backend/addons/dayflow_hrms/security`
- [HR reports](https://github.com/abinayar-30/demos/tree/main/backend/addons/dayflow_hrms/reports): `backend/addons/dayflow_hrms/reports`

### Other components

- **Odoo platform**

## Connections

- Odoo platform → Employees: loads model
- Odoo platform → Attendance: loads model
- Odoo platform → Leave: loads model
- Odoo platform → Payroll: loads model
- Odoo platform → Dashboard model: loads model
- Odoo platform → Auth controller: loads controller
- Odoo platform → Dashboard controller: loads controller
- Odoo platform → Leave approval: loads wizard
