This commit is contained in:
michel 2017-11-13 16:45:45 +01:00
parent 39bb404f99
commit d303d69b96
2 changed files with 5 additions and 4 deletions

View File

@ -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')

View File

@ -15,7 +15,8 @@
<field name="date_start" />
<field name="date_end" />
<field name="duration" />
<filed name="description" />
<field name="description" />
<field name="statut" />
</group>
</group>
</sheet>