{"action":"opened","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/9427","labels_url":"https://api.github.com/repos/odoo/odoo/issues/9427/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/9427/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/9427/events","html_url":"https://github.com/odoo/odoo/issues/9427","id":115227725,"number":9427,"title":"[9.0] project task hours spent not recalculated after deleting timesheet","user":{"login":"i4knowledge","id":14923222,"avatar_url":"https://avatars.githubusercontent.com/u/14923222?v=3","gravatar_id":"","url":"https://api.github.com/users/i4knowledge","html_url":"https://github.com/i4knowledge","followers_url":"https://api.github.com/users/i4knowledge/followers","following_url":"https://api.github.com/users/i4knowledge/following{/other_user}","gists_url":"https://api.github.com/users/i4knowledge/gists{/gist_id}","starred_url":"https://api.github.com/users/i4knowledge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i4knowledge/subscriptions","organizations_url":"https://api.github.com/users/i4knowledge/orgs","repos_url":"https://api.github.com/users/i4knowledge/repos","events_url":"https://api.github.com/users/i4knowledge/events{/privacy}","received_events_url":"https://api.github.com/users/i4knowledge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-05T07:51:37Z","updated_at":"2015-11-05T07:51:37Z","closed_at":null,"body":"The Hours Spent of a project task are not recalculated after deleting timesheet:\r\n 0. installed project management with time on tasks\r\n 1. create a project task\r\n 2. fill in Initially Planned Hours p\r\n 3. create a timesheet with duration d hours\r\n 4. save the task and you'll see that Hours Spent = d and Remaining hours = p-d\r\n 5. edit the project task and delete the timesheet\r\n 6. save the task and you'll see that Hours Spent = d and Remaining hours = p-d where it should be Hours Spent = 0 and Remaining hours = p\r\n\r\n"}}