diff --git a/project_task_timer/models/project_task_timer.py b/project_task_timer/models/project_task_timer.py
index f06eaa9f9..ca8b902a3 100644
--- a/project_task_timer/models/project_task_timer.py
+++ b/project_task_timer/models/project_task_timer.py
@@ -51,6 +51,16 @@ class ProjectTaskTimer(models.Model):
else:
order.is_user_working = False
+ def _compute_duration(self):
+ self
+
+ def set_date_end(self):
+ if self.timesheet_ids:
+ for data in self.timesheet_ids:
+ if not data.date_end:
+ end_date = datetime.combine(data.date, datetime.min.time())
+ data.date_end = end_date
+
@api.multi
def toggle_start(self):
for record in self:
diff --git a/project_task_timer/views/project_task_timer_view.xml b/project_task_timer/views/project_task_timer_view.xml
index 3c7bbc636..14446b52a 100644
--- a/project_task_timer/views/project_task_timer_view.xml
+++ b/project_task_timer/views/project_task_timer_view.xml
@@ -6,6 +6,9 @@
project.task
+
+
+
+
+ account.analytic.line.timer.inherit
+ account.analytic.line
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file