From 618eff5fae5c6cbc3dec26ba9b4031e51b34b115 Mon Sep 17 00:00:00 2001 From: Dinar Date: Wed, 21 Nov 2018 11:50:55 +0500 Subject: [PATCH] :ambulance: The timer does not stop automatically after the end of the time for a subtask (#652) --- project_timelog/__openerp__.py | 2 +- project_timelog/doc/changelog.rst | 5 +++++ project_timelog/static/src/js/timelog.js | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/project_timelog/__openerp__.py b/project_timelog/__openerp__.py index aa92a84a58..728a95ad43 100644 --- a/project_timelog/__openerp__.py +++ b/project_timelog/__openerp__.py @@ -3,7 +3,7 @@ "name": """Time Tracker""", "summary": """Adds Start/Stop buttons to task work lines. Allows to see statistics on Calendar, Graph, Tree views and more""", "category": "Project", - "version": "8.0.1.0.0", + "version": "8.0.1.0.1", "images": ['images/timelog.png'], "author": "IT-Projects LLC, Dinar Gabbasov", 'website': "https://twitter.com/gabbasov_dinar", diff --git a/project_timelog/doc/changelog.rst b/project_timelog/doc/changelog.rst index 9ee2b48b8e..4368f040c8 100755 --- a/project_timelog/doc/changelog.rst +++ b/project_timelog/doc/changelog.rst @@ -1,3 +1,8 @@ +`1.0.1` +------- + +- **Fix:** The timer does not stop automatically after the end of the time for a subtask + `1.0.0` ------- diff --git a/project_timelog/static/src/js/timelog.js b/project_timelog/static/src/js/timelog.js index 2884b1f2a8..8a1f2652da 100755 --- a/project_timelog/static/src/js/timelog.js +++ b/project_timelog/static/src/js/timelog.js @@ -290,7 +290,7 @@ $(document).ready(function() { return false; } var model = new openerp.web.Model('project.task.work'); - model.call("stop_timer", [self.work_id, true, false]).then(function(){ + model.call("stop_timer", [self.config.work_id, true, false]).then(function(){ self.finish_status = true; var element = document.getElementById("clock0"); self.startAnim(element, 500, 10*500);