Odoo Help


1 Answer
Miku Laitinen
2014/9/10 上午12:50

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.


Franz Bautista
2014/9/10 上午2:21

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

Miku Laitinen
2014/9/10 上午2:51

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.

Franz Bautista
2014/9/10 上午3:05

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?

Miku Laitinen
2014/9/11 上午3:50

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

Ask a Question
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now