Skip to content

Add HR setup scripts and Pakistan-specific Employee custom fields - #8

Open
hamad-clustox wants to merge 1 commit into
developfrom
feature/hr-setup-and-attendance
Open

hamad-clustox wants to merge 1 commit into
developfrom
feature/hr-setup-and-attendance

Conversation

@hamad-clustox

Copy link
Copy Markdown
Collaborator

What

  • Custom fields as fixtures — the Pakistan-specific Employee fields (CNIC, CNIC expiry, father/husband name, religion, nationality) now ship in hrms/fixtures/custom_field.json (wired via hooks.py), so they install automatically on bench migrate.
  • setup/ directory — idempotent, secret-free scripts for repeatable deployment of a Clustox HR site:
    • import/ — employee xlsx→JSON and load (company, departments, payroll)
    • users/ — provision linked login accounts; grant admin roles
    • attendance/ — device-id mapping, holidays, flexible shift, one-time backfill
    • attendance_sync/ — live biometric→Frappe check-in sync service (systemd)

Safety

No secrets or PII are committed. Device IP/comm key, API keys, passwords, and employee data live only in git-ignored config on the deploy host. Committed scripts use placeholders.

Notes

  • Local-dev docker/ changes and internal ops docs are intentionally not included.
  • See setup/README.md for run order and the production hardening checklist.

🤖 Generated with Claude Code

Ship the Pakistan-specific Employee fields (CNIC, CNIC expiry, father/husband
name, religion, nationality) as fixtures so they install on migrate, and add a
setup/ directory with idempotent, secret-free scripts for repeatable deployment:

- import/     employee xlsx -> JSON and load (company, departments, payroll)
- users/      provision linked login accounts; grant admin roles
- attendance/ device-id mapping, holidays, flexible shift, one-time backfill
- attendance_sync/ live biometric -> Frappe check-in sync service (systemd)

No secrets or PII are committed: device IP/comm key, API keys, passwords, and
employee data live only in git-ignored config on the deploy host.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants