Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
9550 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Auteur

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.

Auteur

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..

Publications associées Réponses Vues Activité
2
mars 23
10712
0
janv. 21
1731
2
févr. 20
24409
0
mars 15
3733
1
mars 15
6859