Many2many

This commit is contained in:
michel 2017-11-13 16:58:20 +01:00
parent d303d69b96
commit 539cedf663
2 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,8 @@ class Event(models.Model):
('confirmed', 'Confirmed'),
('canceled', 'Canceled')], default='draft')
participants_ids = fields.Many2many('coworking.coworker.name', string='Name')
@api.constrains('date_end')
def _check_date_end(self):

View File

@ -17,6 +17,7 @@
<field name="duration" />
<field name="description" />
<field name="statut" />
<fiels name="participant_ids" />
</group>
</group>
</sheet>