From 539cedf663187bb0dd161fa46fd19e7e6a5d3fe5 Mon Sep 17 00:00:00 2001 From: michel Date: Mon, 13 Nov 2017 16:58:20 +0100 Subject: [PATCH] Many2many --- models/event.py | 2 ++ views/event_views.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/models/event.py b/models/event.py index bafabda..99e125e 100644 --- a/models/event.py +++ b/models/event.py @@ -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): diff --git a/views/event_views.xml b/views/event_views.xml index 738ff2c..31b2438 100644 --- a/views/event_views.xml +++ b/views/event_views.xml @@ -17,6 +17,7 @@ +