I have created a model in that when i click create a form will be open i have 3 fields employee, date_start, date_end when i give all the details a computation will be done and i get 3 values based on hr.attendance records wit same employee and and the given date. It take all the attendance records from that it will calculate the total hours and total hours he inside the office(It is based on same day multiple check in and check out, total hours is difference between first check in and last check out)
Now the cache is every time i need to create a new record for this calculated fields, And what i need is a dynamic view similar to attendance report. How can i create that,
some tips or sample code will be better
NOTE: I have tried with hr.attendance.report code and in the last i got a error WRONGOBJECTTYPE
Thanks in advance
This is how i create the form view in this every time for each employee i need to select the employee and the date. But i need like the
this how can i create this,