From 8c81f0eee6813a8ff8d957f8eefd5f5fb0dbe486 Mon Sep 17 00:00:00 2001 From: michel Date: Mon, 27 Nov 2017 12:02:39 +0100 Subject: [PATCH] / --- coworking_event/models/event.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coworking_event/models/event.py b/coworking_event/models/event.py index 355285c..7264c29 100644 --- a/coworking_event/models/event.py +++ b/coworking_event/models/event.py @@ -15,7 +15,7 @@ class Event(models.Model): title = fields.Char(required=True) - manager_id = fields.Many2one('coworking.res_partner', 'Manager', index=True, required=True, + manager_id = fields.Many2one('res.partner', 'Manager', index=True, required=True, domain="[('coworker_type', 'in', ['staffer', 'member'])]") date_start = fields.Datetime(default=fields.Date.context_today, required=True) starts_this_week = fields.Integer(compute='_compute_starts_this_week', @@ -28,7 +28,7 @@ class Event(models.Model): ('confirmed', 'Confirmed'), ('canceled', 'Canceled')], default='draft') - participants_ids = fields.Many2many('coworking.coworker', string='Subscribers') + participants_ids = fields.Many2many('res.partner', string='Subscribers') participants_count = fields.Integer('Number of participants', compute='_compute_participants_count')