Đây là một bộ 3 module Odoo 17 được xây dựng để cung cấp một giải pháp quản lý nhân sự cơ bản và toàn diện. Bộ module này được thiết kế theo từng chức năng riêng biệt nhưng tích hợp chặt chẽ với nhau, bao gồm quản lý thông tin nhân viên, nghỉ phép, chấm công và tính lương.
- HR Management (
hr_management): Module nền tảng, quản lý thông tin nhân viên, phòng ban, vị trí công việc và phân quyền. - Leave Management (
hr_leaves): Mở rộng từhr_management, quản lý toàn bộ quy trình nghỉ phép. - Payroll & Attendance (
payroll_attendance): Tích hợp chấm công và quy trình tính lương tự động dựa trên dữ liệu từ hai module trên.
- Hồ sơ nhân viên 360°: Quản lý chi tiết thông tin công việc, cá nhân, hợp đồng.
- Cơ cấu tổ chức: Xây dựng sơ đồ tổ chức dạng cây với các phòng ban và vị trí công việc.
- Phân quyền 2 cấp (User/Manager): Hệ thống phân quyền rõ ràng cùng quy trình xin và duyệt quyền minh bạch.
- Đồng bộ hóa User: Tự động đồng bộ thông tin giữa hồ sơ nhân viên (
hr.employee) và tài khoản người dùng (res.users). - Tự động tạo User: Tùy chọn tự động tạo tài khoản người dùng cho nhân viên mới.
- Quản lý Nghỉ phép Toàn diện: Hỗ trợ nhiều loại nghỉ phép (cần cấp phát, không giới hạn, trả lương, không lương).
- Tính toán Thời gian Thông minh: Tự động tính số ngày nghỉ thực tế, loại trừ ngày cuối tuần và ngày lễ chung dựa trên lịch làm việc của từng nhân viên.
- Quản lý Số dư Phép: Tự động theo dõi và kiểm tra số ngày phép còn lại khi nhân viên gửi yêu cầu.
- Luồng phê duyệt: Quy trình rõ ràng từ gửi yêu cầu, thông báo cho quản lý, đến phê duyệt/từ chối.
- Lịch nghỉ Tổng quan: Giao diện lịch trực quan hiển thị ngày nghỉ của nhân viên và ngày lễ của công ty.
- Chấm công Dễ dàng: Widget chấm công (Check-in/Check-out) tiện lợi ngay trên thanh công cụ (systray).
- Tính lương Tự động: Quy trình tính lương mạnh mẽ, tự động tổng hợp dữ liệu từ chấm công và nghỉ phép.
- Tính toán Chi tiết: Tự động tính lương cơ bản, lương làm thêm (OT), lương làm ngày lễ, phụ cấp và các khoản thưởng/phạt.
- Quản lý Bảng lương: Cho phép tạo và xử lý phiếu lương hàng loạt cho nhiều nhân viên hoặc phòng ban.
- Hỗ trợ Đa tiền tệ: Tính toán bằng tiền tệ cơ sở (USD) và hiển thị bằng một loại tiền tệ khác có thể cấu hình.
- Xuất báo cáo Excel: Xuất báo cáo phiếu lương chi tiết ra file Excel chuyên nghiệp.
| Giao diện Danh bạ Nhân viên | Form Yêu cầu Nghỉ phép |
|---|---|
![]() |
![]() |
| Form Bảng lương (Lô) | Danh sách Phiếu lương |
|---|---|
![]() |
![]() |
- Backend: Python 3.10, Odoo 17.0
- Frontend: XML (Views), JavaScript (Systray Widget)
- Database: PostgreSQL
- Clone repository này vào thư mục
addonscủa bạn.git clone https://github.com/nong04/human-resources-management.git /path/to/your/odoo/addons/human-resources-management
- Thêm đường dẫn đến thư mục
human-resources-managementvàoaddons_pathtrong file cấu hìnhodoo.confcủa bạn. - Khởi động lại dịch vụ Odoo.
- Truy cập vào Odoo, vào menu Apps.
- Nhấn Update Apps List.
- Tìm kiếm và cài đặt lần lượt các module sau:
HR Management(hr_management)Leave Management(hr_leaves)Payroll Attendance(payroll_attendance)
Sau khi cài đặt, bạn nên cấu hình hệ thống để sử dụng tối ưu.
- HR Management:
- Vào
HR Management -> Configuration -> Settingsđể bật/tắt tính năng tự động tạo user.
- Vào
- Leave Management:
- Vào
HR Leaves -> Configuration -> Leave Typesđể định nghĩa các loại phép. - Vào
HR Leaves -> Configuration -> Public Leavesđể thiết lập các ngày lễ chung.
- Vào
- Payroll & Attendance:
- Vào
Payroll -> Configuration -> Settingsđể thiết lập tiền tệ hiển thị, tỷ lệ làm thêm và các chính sách khác. - Vào
Payroll -> Configuration -> Bonus/Deduction Rulesđể định nghĩa các quy tắc lương. - Cập nhật hồ sơ của mỗi nhân viên dưới tab "Bảng lương" với
Lương cơ bảnvàPhụ cấp.
- Vào
Để xem hướng dẫn chi tiết từng bước, vui lòng tham khảo tài liệu trong thư mục doc/ của mỗi module:
basemailresource
Thứ tự phụ thuộc nội bộ:
payroll_attendance -> hr_leaves -> hr_management
Dự án này được cấp phép dưới Giấy phép LGPL-3. Xem chi tiết trong file LICENSE.
- Đỗ Thành Long - nong04
This is a suite of three Odoo 17 modules built to provide a basic yet comprehensive human resources management solution. The suite is designed with separate but tightly integrated functionalities, covering employee information management, leaves, attendance, and payroll.
- HR Management (
hr_management): The foundational module, managing employee information, departments, job positions, and permissions. - Leave Management (
hr_leaves): An extension ofhr_management, managing the entire leave process. - Payroll & Attendance (
payroll_attendance): Integrates attendance tracking and an automated payroll process based on data from the two modules above.
- 360° Employee Profile: Detailed management of work, personal, and contract information.
- Organizational Structure: Build a tree-structured organizational chart with departments and job positions.
- Two-Tier Permissions (User/Manager): A clear permission system with a transparent process for requesting and approving rights.
- User Synchronization: Automatically synchronizes information between employee profiles (
hr.employee) and user accounts (res.users). - Automatic User Creation: An optional feature to automatically create user accounts for new employees.
- Comprehensive Leave Management: Supports multiple leave types (requires allocation, no limit, paid, unpaid).
- Smart Duration Calculation: Automatically calculates the actual number of leave days, excluding weekends and public holidays based on each employee's work schedule.
- Leave Balance Management: Automatically tracks and validates the remaining leave days when an employee submits a request.
- Approval Workflow: A clear process from submitting a request, notifying the manager, to approval/refusal.
- Leave Overview Calendar: An intuitive calendar interface displaying employee leaves and company holidays.
- Easy Attendance Tracking: A convenient Check-in/Check-out widget directly on the systray.
- Automated Payroll Calculation: A powerful payroll process that automatically aggregates data from attendance and leaves.
- Detailed Computation: Automatically calculates base pay, overtime (OT) pay, public holiday pay, allowances, and bonuses/deductions.
- Payroll Management: Allows creating and processing payslips in batches for multiple employees or departments.
- Multi-Currency Support: Performs calculations in a base currency (USD) and displays them in a different configurable currency.
- Excel Export: Supports exporting detailed payslip reports to professional Excel files.
| Employee Directory Interface | Leave Request Form |
|---|---|
![]() |
![]() |
| Payroll Form | Payslip List |
|---|---|
![]() |
![]() |
- Backend: Python 3.10, Odoo 17.0
- Frontend: XML (Views), JavaScript (Systray Widget)
- Database: PostgreSQL
- Clone this repository into your
addonsdirectory.git clone https://github.com/nong04/human-resources-management.git /path/to/your/odoo/addons/human-resources-management
- Add the path to the
human-resources-managementdirectory to youraddons_pathin yourodoo.conffile. - Restart the Odoo service.
- Navigate to Apps in your Odoo instance.
- Click Update Apps List.
- Search for and install the following modules in order:
HR Management(hr_management)Leave Management(hr_leaves)Payroll Attendance(payroll_attendance)
After installation, it is recommended to configure the system for optimal use.
- HR Management:
- Go to
HR Management -> Configuration -> Settingsto enable/disable automatic user creation.
- Go to
- Leave Management:
- Go to
HR Leaves -> Configuration -> Leave Typesto define the types of leave your company uses. - Go to
HR Leaves -> Configuration -> Public Leavesto set up company-wide holidays.
- Go to
- Payroll & Attendance:
- Go to
Payroll -> Configuration -> Settingsto set the display currency, overtime rates, and other policies. - Go to
Payroll -> Configuration -> Bonus/Deduction Rulesto define salary rules. - Update each employee's profile under the "Payroll" tab with their
Base SalaryandAllowance.
- Go to
For detailed step-by-step instructions, please refer to the documentation within each module's doc/ folder:
basemailresource
Internal Dependency Order:
payroll_attendance -> hr_leaves -> hr_management
This project is licensed under the LGPL-3 License. See the LICENSE file for details.
- Do Thanh Long - nong04



