From d303d69b9643b955d48dcc9497ce0196e4d52f4b Mon Sep 17 00:00:00 2001 From: michel Date: Mon, 13 Nov 2017 16:45:45 +0100 Subject: [PATCH] / --- models/event.py | 6 +++--- views/event_views.xml | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/models/event.py b/models/event.py index ac5e89c..bafabda 100644 --- a/models/event.py +++ b/models/event.py @@ -18,9 +18,9 @@ class Event(models.Model): duration = fields.Float(compute='_compute_duration') description = fields.Text() - # statut = fields.Selection([('draft', 'Draft'), - # ('confirmed', 'Confirmed'), - # ('canceled', 'Canceled')]) + statut = fields.Selection([('draft', 'Draft'), + ('confirmed', 'Confirmed'), + ('canceled', 'Canceled')], default='draft') @api.constrains('date_end') diff --git a/views/event_views.xml b/views/event_views.xml index e4f0b55..738ff2c 100644 --- a/views/event_views.xml +++ b/views/event_views.xml @@ -15,7 +15,8 @@ - + +