feat(training): TETRA-2139 — 20 custom field cho Training doctypes #163

Merged
tant merged 1 commit from fix/TETRA-2139-training-custom-fields into main 2026-06-13 16:02:52 +07:00
Owner

TETRA-2139 — 20 custom field cho Training (Program/Event/Event Employee)

Tetra training-dashboard/enrollment/completion services query 20 custom field trên Training doctypes mà stock HRMS 16.5 không có → REST list filter/select raise Field not permitted (trang /hrm/trainings tab Khoá học 403). Bổ sung vào vhrms theo schema-ownership (TETRA-1354).

Training Program (12): course_type, duration_value/unit, mandatory, mandatory_deadline, target_audience_type, target_departments/roles/levels, max_participants, platform, schedule_type
Training Event (2): online_link, online_platform
Training Event Employee child (6): enrolled_at, enrolled_by, enrollment_method, checked_in_at, checked_out_at, attendance_notes

Bỏ custom_curriculum (backend đọc nhưng FE/DTO không gửi — dead). Map BDPOC Phase 1 SOW §877-897.

Verified: create_custom_fields áp 20 field lên site local; query training-dashboard + Training Event + child meta hết "Field not permitted". test_custom_fields 150/150 pass. Bump 0.11.0 → 0.12.0.

Refs: TETRA-2139

## TETRA-2139 — 20 custom field cho Training (Program/Event/Event Employee) Tetra training-dashboard/enrollment/completion services query 20 custom field trên Training doctypes mà stock HRMS 16.5 **không có** → REST list filter/select raise `Field not permitted` (trang /hrm/trainings tab Khoá học 403). Bổ sung vào vhrms theo schema-ownership (TETRA-1354). **Training Program (12):** course_type, duration_value/unit, mandatory, mandatory_deadline, target_audience_type, target_departments/roles/levels, max_participants, platform, schedule_type **Training Event (2):** online_link, online_platform **Training Event Employee child (6):** enrolled_at, enrolled_by, enrollment_method, checked_in_at, checked_out_at, attendance_notes Bỏ `custom_curriculum` (backend đọc nhưng FE/DTO không gửi — dead). Map BDPOC Phase 1 SOW §877-897. **Verified:** `create_custom_fields` áp 20 field lên site local; query training-dashboard + Training Event + child meta hết "Field not permitted". test_custom_fields 150/150 pass. Bump 0.11.0 → 0.12.0. Refs: TETRA-2139
feat(training): TETRA-2139 — 20 custom field cho Training (Program/Event/Event Employee)
All checks were successful
Test (offline) / test (push) Successful in 40s
Test (offline) / test (pull_request) Successful in 1m20s
4337b68f49
Tetra training-dashboard/enrollment/completion services query 20 custom field
trên Training doctypes mà stock HRMS 16.5 KHÔNG có → REST list filter/select
raise "Field not permitted" (trang /hrm/trainings tab Khoá học 403). Bổ sung
vào vhrms theo nguyên tắc schema-ownership (TETRA-1354).

- Training Program (12): course_type, duration_value/unit, mandatory,
  mandatory_deadline, target_audience_type, target_departments/roles/levels,
  max_participants, platform, schedule_type.
- Training Event (2): online_link, online_platform.
- Training Event Employee child (6): enrolled_at, enrolled_by,
  enrollment_method, checked_in_at, checked_out_at, attendance_notes.

Đã bỏ custom_curriculum (backend đọc nhưng FE/DTO không bao giờ gửi — dead).
Map yêu cầu BDPOC Phase 1 (SOW §877-897: phân loại khoá, target audience,
duration, mandatory, capacity, online delivery, điểm danh).

Verified: create_custom_fields áp 20 field lên site local; query
training-dashboard (Training Program filter custom_mandatory + select 11
custom field) + Training Event + child meta — hết "Field not permitted".

Bump 0.11.0 → 0.12.0.

Refs: TETRA-2139
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
tant merged commit 4a6a584017 into main 2026-06-13 16:02:52 +07:00
tant deleted branch fix/TETRA-2139-training-custom-fields 2026-06-13 16:02:52 +07:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tant/vhrms!163
No description provided.