{"action":"created","issue":{"url":"https://api.github.com/repos/marcok/odoo_modules/issues/7","repository_url":"https://api.github.com/repos/marcok/odoo_modules","labels_url":"https://api.github.com/repos/marcok/odoo_modules/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/marcok/odoo_modules/issues/7/comments","events_url":"https://api.github.com/repos/marcok/odoo_modules/issues/7/events","html_url":"https://github.com/marcok/odoo_modules/issues/7","id":116740639,"number":7,"title":"Wrong duty hours with leave days having decimals <> 0 (e.g. 0,5)","user":{"login":"RenaudDesarzens","id":15830913,"avatar_url":"https://avatars.githubusercontent.com/u/15830913?v=3","gravatar_id":"","url":"https://api.github.com/users/RenaudDesarzens","html_url":"https://github.com/RenaudDesarzens","followers_url":"https://api.github.com/users/RenaudDesarzens/followers","following_url":"https://api.github.com/users/RenaudDesarzens/following{/other_user}","gists_url":"https://api.github.com/users/RenaudDesarzens/gists{/gist_id}","starred_url":"https://api.github.com/users/RenaudDesarzens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RenaudDesarzens/subscriptions","organizations_url":"https://api.github.com/users/RenaudDesarzens/orgs","repos_url":"https://api.github.com/users/RenaudDesarzens/repos","events_url":"https://api.github.com/users/RenaudDesarzens/events{/privacy}","received_events_url":"https://api.github.com/users/RenaudDesarzens/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marcok/odoo_modules/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-11-13T10:19:26Z","updated_at":"2016-10-20T10:16:06Z","closed_at":"2016-10-20T10:16:06Z","body":"I just tested your module and am very interested in using it with Odoo 8.\r\n\r\nAs far as I could see, duty hours is either set to zero or equals 1:1 the defined worktime in employees contract. But often we have leaves of less than 1,0 day and less than the worktime of that day.\r\n\r\nWould it be possible to adopt over-/undertime calculation to take such situations into account?\r\n\r\nExample:\r\nNormal daily worktime defined = 8,5 hours\r\nEmployee requests a (paid) half day leave (e.g. afternoon) = 0,5 days or in that case 4,25 hours.\r\nDuty hours for this day should then be 4,25 hours instead of the normal daily worktime of 8,5 hours.\r\nAttendance of the employee is 07:00 - 09:00 and 09:15 - 12:15 = 5 hours\r\n\r\nOver-/undertime for this day should be calculated like this:\r\n\r\nAttendance (5 hours) -   duty hours (4,25 hours <- 8,5 normal daily worktime hours - 4,25 paid leave hours) =  overtime 0,75 hours\r\n\r\nWithout this and depending whether duty hours are set to zero or to 8,5 (in that case), calculation of over-/undertime gives either 5 hours overtime or 3,5 hours undertime.\r\n\r\nIt would be very useful to us if this could be implemented likewise.\r\n\r\nThanks in advance for it!\r\nRenaud"},"comment":{"url":"https://api.github.com/repos/marcok/odoo_modules/issues/comments/255066661","html_url":"https://github.com/marcok/odoo_modules/issues/7#issuecomment-255066661","issue_url":"https://api.github.com/repos/marcok/odoo_modules/issues/7","id":255066661,"user":{"login":"marcok","id":2509708,"avatar_url":"https://avatars.githubusercontent.com/u/2509708?v=3","gravatar_id":"","url":"https://api.github.com/users/marcok","html_url":"https://github.com/marcok","followers_url":"https://api.github.com/users/marcok/followers","following_url":"https://api.github.com/users/marcok/following{/other_user}","gists_url":"https://api.github.com/users/marcok/gists{/gist_id}","starred_url":"https://api.github.com/users/marcok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcok/subscriptions","organizations_url":"https://api.github.com/users/marcok/orgs","repos_url":"https://api.github.com/users/marcok/repos","events_url":"https://api.github.com/users/marcok/events{/privacy}","received_events_url":"https://api.github.com/users/marcok/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T10:16:06Z","updated_at":"2016-10-20T10:16:06Z","body":"We recently published a bugfixed V8 and V9 Version of the module, pls check if your problem still exists."}}
{"actor":{"display_login":"marcok"}}