Skip to Content
Menu
This question has been flagged
2 Replies
4521 Views

Hi there,

is there a way to set the  time of datetime field to default 00:00:00 or 23:59:59 ?

I have a problem using hr_holidays modul. Depending on the current time when i create a holiday entry odoo calculates in a wrong way the number of working days. So i want to set the duration from e.g. <mm/dd/yyyy 14:10:37> to <mm/dd/yyyy 00:00:00> for calculation. 

Can i do this in xml view ?

Kind regards,

Franz

Avatar
Discard

relate the employee with resources, you will get the correct count of working days

Author Best Answer

@Hilar AK,

sorry i didn't understand your answer. Most of employee are related to a full time position. The working hours are from Mo to Fr, 8 hours a day from 08:00 to 12:00 and 13:00 to 17:00. 

Using calendar view the time will set from 07:00 to 19:00 picking a from and to date.

Can you give me an example how to do this ?

Thank you very much,

Franz

Avatar
Discard