diff --git a/CHANGELOG b/CHANGELOG
index 871204aa1f..0321a279bd 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+* Use window domain to show "open" and "closed" timesheet works
+* Remove active from timesheet work
+
Version 5.8.0 - 2020-11-02
* Bug fixes (see mercurial logs for details)
* Remove support for Python 3.5
diff --git a/view/work_form.xml b/view/work_form.xml
index 97806a41eb..8577da93a3 100644
--- a/view/work_form.xml
+++ b/view/work_form.xml
@@ -10,11 +10,8 @@ this repository contains the full copyright notices and license terms. -->
-
-
-
diff --git a/work.py b/work.py
index 15cd484c61..03012070d7 100644
--- a/work.py
+++ b/work.py
@@ -7,9 +7,8 @@ from sql import Literal
from sql.aggregate import Sum
from trytond.i18n import gettext
-from trytond.model import (
- ModelView, ModelSQL, ModelStorage, DeactivableMixin, fields, Unique)
-from trytond.pyson import Not, Bool, Eval, If
+from trytond.model import ModelView, ModelSQL, ModelStorage, fields, Unique
+from trytond.pyson import Bool, Eval, If
from trytond.transaction import Transaction
from trytond.pool import Pool
from trytond.tools import reduce_ids, grouped_slice
@@ -17,7 +16,7 @@ from trytond.tools import reduce_ids, grouped_slice
from .exceptions import CompanyValidationError
-class Work(DeactivableMixin, ModelSQL, ModelView):
+class Work(ModelSQL, ModelView):
'Work'
__name__ = 'timesheet.work'
name = fields.Char('Name',
@@ -57,10 +56,6 @@ class Work(DeactivableMixin, ModelSQL, ModelView):
select=True, help="Make the work belong to the company.")
timesheet_lines = fields.One2Many('timesheet.line', 'work',
'Timesheet Lines',
- depends=['active'],
- states={
- 'readonly': Not(Bool(Eval('active'))),
- },
help="Spend time on this work.")
# Self referring field to use for aggregation in graph view
work = fields.Function(fields.Many2One('timesheet.work', 'Work'),
diff --git a/work.xml b/work.xml
index 9226fc32ba..5c8a306437 100644
--- a/work.xml
+++ b/work.xml
@@ -42,6 +42,21 @@ this repository contains the full copyright notices and license terms. -->
+
+ Open
+
+
+
+
+
+
+ All
+
+
+
+