Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Human Resources Payroll
  3. Payroll Worked Days Override + Import v 18.0
  4. Sales Conditions FAQ

Payroll Worked Days Override + Import

by Your Name / Your Company https://www.yourwebsite.com
Odoo

$ 99.65

v 18.0 Third Party
This module requires Odoo Enterprise Edition.
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Payroll (hr_payroll)
• Discuss (mail)
• Employees (hr)
• Employee Contracts (hr_contract)
Lines of code 406
Technical Name worked_days_override
LicenseLGPL-3
Websitehttps://www.yourwebsite.com
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Payroll (hr_payroll)
• Discuss (mail)
• Employees (hr)
• Employee Contracts (hr_contract)
Lines of code 406
Technical Name worked_days_override
LicenseLGPL-3
Websitehttps://www.yourwebsite.com
  • Description
  • Documentation
Supports:
Community
Enterprise

Human Resources • Payroll

Payroll Worked Days Override + Import

Override worked days on payslips and import attendance data from Excel/CSV files.

Payroll Worked Days Override
  • Screenshots
  • Features
  • FAQs
  • Releases
Compatible With
Community Enterprise

📸 Screenshots

Complete visual guide covering all testing scenarios from module installation to data import

PART 1: Module Installation Verification

New Input Types Configuration

Navigate to Payroll → Configuration → Input Types to verify the three new input types:

  • Attendance (Manual Days) - Code: ATT_DAYS
  • Overtime (Hours) - Code: ATT_OT
  • Late Time (Hours) - Code: ATT_LATE
New Input Types in Configuration

PART 2: Manual Worked Days Override

Create Payslip Batch & Generate Payslips

Create a new payslip batch with period dates, then click Generate Payslips to create payslips for selected employees.

Payslip Batch Form
Generate Payslips Wizard

View Default Worked Days (Before Override)

Open a payslip and click the Compute button to view the Worked Days & Inputs tab. Note the default WORK100 line showing full month values (e.g., 22 days, 176 hours, full contract wage).

Default Worked Days Before Override

PART 3: CSV Import Functionality

Access Import Wizard

Navigate to Payroll → Payslips → Import Attendance to open the wizard with fields for Payslip Batch, Import File, and Template File download.

Import Wizard Initial View

Export CSV Template

Select a payslip batch and click Export Template to generate a CSV file pre-filled with employee information, departments, and the current month for easy data entry.

Generate Attendance Template
� Excel/CSV Import Wizard
  • Import attendance data in bulk from Excel or CSV files for entire payslip batches.
  • Auto-generate CSV templates pre-filled with employee information and departments.
  • Process hundreds of employees in seconds instead of manual entry.
✏️ Manual Worked Days Override
  • Easily override worked days on individual payslips with ATT_DAYS input type.
  • Automatic recalculation of hours and amounts based on working calendar configuration.
⚡ Automatic Calculations
  • Smart calculation engine computes prorated salaries based on actual worked days.
  • Calculates worked days from biometric + job card hours minus late time.
  • Respects contract wage and working calendar for accurate salary proration.
� Multiple Input Types
  • Track attendance days (ATT_DAYS), overtime hours (ATT_OT), and late time (ATT_LATE) separately.
  • Dedicated input types integrate seamlessly with payroll rules and salary structures.

From the Payroll menu, open a payslip batch, then click the Attendance Import Wizard button. First, generate a CSV template by clicking Export Template. Fill in the attendance data in Excel, save the file, then upload it back through the wizard and click Import.

The CSV must include: employee (ID or name), month (YYYY-MM), biometricattendance, jobcardattendance, overtime, and latetime. The template auto-generates with employee_name and department for reference.

The module calculates: Total Hours = (biometric + jobcard), Effective Hours = Total Hours - latetime, then Worked Days = Effective Hours ÷ hours_per_day (from the employee's working calendar). The result is stored in the ATT_DAYS input type.

Yes! The import wizard processes all employees in the CSV file at once. You can import attendance data for hundreds of employees in a single operation. The wizard will report which employees were successfully processed and any missing employees or payslips.

Latest Release 17.0.1.0.0

2025-01-15
Add
  • Import attendance data from Excel/CSV files for entire payslip batches.
  • Auto-generate CSV templates pre-filled with employee information and departments.
  • Manual override of worked days on payslips using ATT_DAYS input type.
  • Automatic calculation of worked days from biometric, job card, and late time hours.
  • Prorated salary calculations based on actual worked days and working calendar.
  • Support for overtime (ATT_OT) and late time (ATT_LATE) tracking.

📅 Changelog

Date Version Notes
2025-12-08 18.0.1.0.0 Initial release – Payroll Worked Days Override + Import module

📜 Licensing

License Type
LGPL-3
License Info
View License
License: This module is licensed under LGPL-3 (GNU Lesser General Public License v3.0). For more information, visit GNU LGPL-3.

Support & Contact

Email
support@odoo.co.ke
Website
https://odoo.co.ke/helpdesk
Phone
+254739444447
Response Time
1 business day SLA

# Payroll Worked Days Override + Import

![Banner](static/description/banner.png)

## Overview

The Payroll Worked Days Override + Import module is a powerful Odoo 19 extension that streamlines payroll processing by enabling bulk attendance imports and manual worked days overrides. Developed by Metro ICT, this module eliminates tedious manual data entry and ensures accurate salary calculations based on actual attendance.

## Key Features

### ✅ Excel/CSV Import Wizard - Bulk Import: Import attendance data for entire payslip batches from Excel or CSV files - Auto-Generated Templates: Export CSV templates pre-filled with employee information and departments - Time Savings: Process hundreds of employees in seconds instead of manual entry - Flexible Format: Support for biometric hours, job card hours, overtime, and late time

### ✅ Manual Worked Days Override - Simple Override: Easily override worked days on individual payslips using the ATT_DAYS input type - Automatic Recalculation: Hours and amounts automatically recalculated based on working calendar configuration - Direct Input: Simple input interface directly on the payslip form - No Recompute Needed: Changes apply instantly without manual recomputation

### ✅ Automatic Calculations - Smart Proration: Prorated salaries calculated based on actual worked days - Formula-Based: Calculates worked days from biometric + job card hours minus late time - Calendar-Aware: Respects contract wage and working calendar for accurate calculations - Transparent: Clear calculation logic that's easy to audit and verify

### ✅ Multiple Input Types - ATT_DAYS: Track attendance days (manual override) - ATT_OT: Record overtime hours separately - ATT_LATE: Track late time deductions - Seamless Integration: All input types integrate with payroll rules and salary structures

## How It Works

### Workflow Overview

` 1. Install Module → 2. Create Payslip Batch → 3. Import Attendance → 4. Auto Processing → 5. Salary Calculation `

### Detailed Steps

#### 1. Module Installation - Install the module from Odoo Apps - Verify three new input types are created:

  • Attendance (Manual Days) - Code: ATT_DAYS
  • Attendance Overtime - Code: ATT_OT
  • Attendance Late Time - Code: ATT_LATE
  • Input types automatically integrate with payroll processing

#### 2. Create Payslip Batch - Navigate to Payroll → Payslips → Batches - Create a new batch with period dates - Click Generate Payslips for selected employees - Payslips created with default worked days (full month)

#### 3. Import Attendance Data - Access Payroll → Import Attendance wizard - Export CSV template pre-filled with employee data - Fill in attendance hours:

  • Biometric hours
  • Job card hours
  • Overtime hours
  • Late time hours
  • Upload completed CSV and click Import

#### 4. Automatic Processing - System calculates worked days from attendance hours - Creates payslip input lines (ATT_DAYS, ATT_OT, ATT_LATE) - Updates worked days lines with prorated salary amounts - No manual intervention required!

#### 5. Salary Calculation - Prorated salaries calculated automatically - Formula: Salary = (Worked Days / Total Days) × Monthly Wage - Accurate deductions for partial month attendance - All calculations documented on payslip

### Example Calculation

Scenario: - Employee Monthly Wage: $3,000 - Total Working Days: 22 days - Actual Worked Days: 15 days

Calculation: ` Prorated Salary = (15 / 22) × $3,000 = $2,045.45 `

All automatically calculated and applied to the payslip!

## Installation

### Prerequisites

  • Odoo Version: 19.0
  • Dependencies: - hr (Human Resources) - hr_payroll (Payroll) - hr_contract (Contracts)

### Installation Steps

  1. Download the Module `bash # Clone or download the module to your Odoo addons directory cd /path/to/odoo/addons git clone <repository-url> worked_days_override `

  2. Update Apps List - Go to Apps → Update Apps List - Remove the "Apps" filter - Search for "Payroll Worked Days Override"

  3. Install the Module - Click Install button - Wait for installation to complete

  4. Verify Installation - Go to Payroll → Configuration → Input Types - Confirm three new input types exist:

    • Attendance (Manual Days) - ATT_DAYS
    • Attendance Overtime - ATT_OT
    • Attendance Late Time - ATT_LATE

## Usage Guide

### Method 1: Bulk Import via Wizard

  1. Open Import Wizard - Navigate to Payroll → Import Attendance - Select the payslip batch - Click Export Template

  2. Fill Template - Open the downloaded CSV file - Fill in attendance data for each employee:

    • biometric_hours: Hours from biometric system
    • job_card_hours: Hours from job cards
    • overtime_hours: Overtime hours worked
    • late_time_hours: Late time to deduct
  3. Import Data - Upload the completed CSV file - Click Import - System processes all employees automatically

### Method 2: Manual Override

  1. Open Payslip - Navigate to Payroll → Payslips - Open the desired payslip
  2. Add Input Line - Go to Other Inputs tab - Click Add a line - Select Attendance (Manual Days) input type - Enter the number of worked days
  3. Compute Payslip - Click Compute Sheet - Worked days and salary automatically updated

## CSV Template Format

`csv employee_id,employee_name,department,biometric_hours,job_card_hours,overtime_hours,late_time_hours EMP001,John Doe,Sales,176,176,8,2 EMP002,Jane Smith,IT,168,168,12,0 EMP003,Bob Johnson,HR,160,160,0,4 `

Column Descriptions: - employee_id: Employee reference (auto-filled) - employee_name: Employee name (auto-filled) - department: Department name (auto-filled) - biometric_hours: Hours from biometric attendance system - job_card_hours: Hours from job cards or timesheets - overtime_hours: Additional overtime hours - late_time_hours: Late time hours to deduct

## Configuration

### Working Calendar Setup

For accurate calculations, ensure your working calendar is properly configured:

  1. Navigate to Settings - Go to Settings → Technical → Resource → Working Times
  2. Configure Calendar - Set Hours per Day (e.g., 8.0) - Set Hours per Week (e.g., 40.0) - Define working days and hours
  3. Assign to Contracts - Ensure employee contracts reference the correct working calendar

### Salary Rules Integration

The module works with standard Odoo salary rules. To use the prorated amount in your rules:

`python # In your salary rule Python code result = payslip._get_prorated_basic_amount() `

This helper method returns the prorated salary based on ATT_DAYS if set, otherwise returns the full contract wage.

## Technical Details

### Module Structure

``` worked_days_override/ ├── __init__.py ├── __manifest__.py ├── README.md ├── models/ │ ├── __init__.py │ └── hr_payslip.py ├── wizard/ │ ├── __init__.py │ ├── attendance_import_wizard.py │ └── attendance_import_wizard_views.xml ├── data/ │ └── hr_payslip_input_type.xml ├── security/ │ └── ir.model.access.csv └── static/

└── description/
├── banner.png ├── icon.png └── index.html

```

### Key Methods

#### _get_worked_day_lines(domain=None) Overrides the standard method to inject manual attendance days when ATT_DAYS input is present.

#### _apply_manual_attendance_override() Applies the manual attendance override to worked days lines after payslip computation.

#### _get_prorated_basic_amount() Helper method for salary rules to get the prorated basic amount based on worked days.

#### _attendance_amount_from_hours(manual_days, hours_per_day) Calculates the prorated salary amount based on worked days and working calendar.

## Troubleshooting

### Issue: Import fails with "Employee not found" Solution: Ensure employee IDs in CSV match exactly with Odoo employee records.

### Issue: Salary not prorating correctly Solution: Verify working calendar is configured with correct hours per day/week.

### Issue: Input types not appearing Solution: Upgrade the module after installation: Apps → Payroll Worked Days Override → Upgrade

### Issue: Changes not reflecting on payslip Solution: Click Compute Sheet button to recalculate the payslip.

## Support & Contact

Developed by: Metro ICT Website: [https://www.metroict.com](https://www.metroict.com) Version: 19.0.1.0.0 License: LGPL-3

For support, bug reports, or feature requests, please contact Metro ICT support team.

## Changelog

### Version 18.0.1.0.0 - Initial release for Odoo 18 - Excel/CSV bulk import wizard - Manual worked days override - Automatic salary proration - Three new input types (ATT_DAYS, ATT_OT, ATT_LATE) - Integration with standard Odoo payroll

## License

This module is licensed under LGPL-3. See LICENSE file for details.

---

© 2025 Metro ICT - Smart Payroll Solutions

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with