Employee Image Attendance Module
Overview
This Odoo module enhances the standard attendance system by capturing and storing employee images during check-in. It provides a user-friendly interface for viewing attendance records along with the captured images.
Features
- Captures employee images during attendance check-in
- Stores images with attendance records
- Provides a dedicated view for browsing attendance records with images
- Integrates seamlessly with Odoo's existing attendance system
Technical Details
Models
- Extended `hr.attendance` model with:
 - `check_in_image`: Binary field to store captured images
Views
1. Tree View (`view_attendance_images_tree`)
  - Shows employee details
  - Displays check-in image thumbnail
  - Lists check-in and check-out times
2. Form View (`view_attendance_images_form`)
  - Displays check-in image prominently
  - Shows employee details
  - Shows attendance timing information
JavaScript Implementation
The module includes JavaScript functionality to:
- Access the device camera
- Capture images during check-in
- Process and save images with attendance records
Controllers
- Added endpoint `/save_attendance_image` to handle image storage
- Integrated with existing attendance check-in/out flow
Installation
- Install the module through Odoo's module installation interface
- Grant necessary camera permissions in the browser
- Configure employee access rights as needed
Usage
- Navigate to Attendance > Attendance Images
- View the list of attendance records with captured images
- Click on any record to view detailed information and a larger image
Menu Structure
- Main Menu: Attendance
 - Sub-menu: Attendance Images (displays all attendance records with captured images)
Dependencies
- hr_attendance
- web
Security
- Basic access rights for attendance records
- Camera access managed through browser permissions
Contributing
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a new branch for your feature
- Submit a pull request
Support
For support and questions, please contact the module maintainer or raise an issue in the repository.
License
This module is licensed under the MIT License.
Author Information
This module was created by Samy.
Contact me at: https://linktr.ee/Prof.M.Samy
Please log in to comment on this module