Skip to Content
Menu
This question has been flagged
1 Reply
8014 Views

I went through the process of inputting attendance manually for an employee.

It takes a lot of time especially if you have lots of employees. Is there a  way

to import csv files for attendance for employees to avoid manual input?

I can understand inputting timesheets for scheduling work but not attendance

if you want to avoid tampering.

Avatar
Discard
Best Answer

It usually makes importing easier if you know the data structure. I always export data to CSV to see what kind of CSV import file should I create.

In this case, the data looks something like this (see better formatted version here):

id                                                       name                                 action        action_desc/id    employee_id/id
hr_attendance.attendance20    2014-09-10 12:34:00    Sign Out                                    hr.employee_fp
hr_attendance.attendance19    2014-09-10 07:10:00    Sign In                                       hr.employee_fp

So, now you can create a CSV file with mandatory fields name, action and employee_id/id. The trickiest one will be employee_id/id because you have to find out each employee's employee ID. You can do this by exporting the Employee names into a CSV file (the ID will be added automatically) and using it as a source for the attendance CSV. It might be easiest to use Excel/LibreOffice Calc/Google Spreadsheets and the VLOOKUP spreadsheet function for this.

Now you should have a CSV file with fields name, action and employee_id/id ready to be imported. Just click the "import" link next to the "Create" button and validate & import.

 

Avatar
Discard
Author

MIke, as a follow up. Is there a way to input total hours worked per day, week etc bypassing the attendance module altogether?

Timesheets would allow this, but timesheets and attendance are usually used for different things (see https://doc.odoo.com/6.1/el/book/4/4_11_HR/4_11_HR_timesheet/). Even so, nothing prevents you from using timesheets as an attendance tracker. You can input total hours per day in the timesheets.

Author

Miku, Thanks very much. If I do use timesheets as attendance tracker how do I relate it as applicable to payroll and/or bill to a client or clients?

Sorry, I haven't used timesheets & attendance enough to be able to answer that..

Related Posts Replies Views Activity
2
Mar 23
9288
0
Jan 21
951
2
Feb 20
22948
0
Mar 15
2926
1
Mar 15
5941