forked from michel/Coworking
/
This commit is contained in:
parent
39bb404f99
commit
d303d69b96
@ -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')
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user