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')
|
duration = fields.Float(compute='_compute_duration')
|
||||||
description = fields.Text()
|
description = fields.Text()
|
||||||
# statut = fields.Selection([('draft', 'Draft'),
|
statut = fields.Selection([('draft', 'Draft'),
|
||||||
# ('confirmed', 'Confirmed'),
|
('confirmed', 'Confirmed'),
|
||||||
# ('canceled', 'Canceled')])
|
('canceled', 'Canceled')], default='draft')
|
||||||
|
|
||||||
|
|
||||||
@api.constrains('date_end')
|
@api.constrains('date_end')
|
||||||
|
@ -15,7 +15,8 @@
|
|||||||
<field name="date_start" />
|
<field name="date_start" />
|
||||||
<field name="date_end" />
|
<field name="date_end" />
|
||||||
<field name="duration" />
|
<field name="duration" />
|
||||||
<filed name="description" />
|
<field name="description" />
|
||||||
|
<field name="statut" />
|
||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
</sheet>
|
</sheet>
|
||||||
|
Loading…
Reference in New Issue
Block a user