summaryrefslogtreecommitdiff
path: root/addons/project/models
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2018-09-05 14:22:37 +0200
committerRaphael Collet <rco@odoo.com>2018-09-11 17:25:07 +0200
commitfa6774b899cd68c1e4d2b9a9776d89fbf6bbbe5d (patch)
tree5b16d65715c47e81510a9d5f8c5091d4692ac5dd /addons/project/models
parent9823fe6f075559657f85a905f95641e2409a2737 (diff)
[FIX] models: make log_access fields readonly, and remove useless definitions
Diffstat (limited to 'addons/project/models')
-rw-r--r--addons/project/models/project.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/project/models/project.py b/addons/project/models/project.py
index 18f49389878..b050188cdfd 100644
--- a/addons/project/models/project.py
+++ b/addons/project/models/project.py
@@ -451,8 +451,8 @@ class Task(models.Model):
('blocked', 'Red')], string='Kanban State',
copy=False, default='normal', required=True)
kanban_state_label = fields.Char(compute='_compute_kanban_state_label', string='Kanban State Label', track_visibility='onchange')
- create_date = fields.Datetime(index=True)
- write_date = fields.Datetime(index=True) #not displayed in the view but it might be useful with base_automation module (and it needs to be defined first for that)
+ create_date = fields.Datetime("Created On", readonly=True, index=True)
+ write_date = fields.Datetime("Last Updated On", readonly=True, index=True)
date_start = fields.Datetime(string='Starting Date',
default=fields.Datetime.now,
index=True, copy=False)