Hibou Odoo Suite: Payroll Modules: Timesheets on Payslips

Repository Versions:

Modules:

Author:

Hibou Corp.

License:

OPL-1


Purpose

The purpose of this documentation is to outline the processes associated with Hibou's Timesheets on Payslips module for Odoo, which allows you to include Timesheet and Attendance numbers on Employee Payslips.

Getting Started

First thing's first, we want to install the module! Navigate to the Apps application and search for 'Timesheets on Payslips'. When ready, click  Install .

Odoo CMS - a big picture

  Good to know!

This module requires both the Payroll application and the Timesheets/Attendances reporting module. However, if you do not already have these installed, Odoo will install them for you during this module's installation!

Processes

To get started, navigate to the Employees application.

Odoo - Sample 1 for three columns


Configuring an Employee Contract

Once there, click Contracts .

This will bring you to a kanban view of all employee contracts. Select an existing Contact or create one by clicking Create . Select the checkbox in the Salary Information tab for Paid Hourly. When finished, click Save .

Odoo CMS - a big picture

Employee Attendances

Navigate to the Attendances Application.

Odoo - Sample 1 for three columns


Once there select Manage Attendances followed by Attendances. Remove the 'Today' filter to view all attendances. Then, from the Group By menu, select Employee

Odoo CMS - a big picture

Payroll + Attendances

Navigate to the Payroll application.

Odoo - Sample 1 for three columns


Once there, hit Create .

Important!

You must enter dates for the pay period, in the Period fields, before you select an employee. After selecting an employee, you will be unable to change the Period.

Select an Employee with attendances for the desired Period from the dropdown menu. Once the employee is selected, an Attendance line will be added to the Worked Days section with Number of Days and Number of Hours.

Odoo CMS - a big picture

Technical

This module adds a new Paid Hourly Attendance Boolean field to Contracts. This field is then used as a flag in the `hr.payslip` model's `get_worked_day_lines` and `create_worked_day_lines` methods to create worked day lines using the selected contracts employee's attendances.