From 67c875e987b68f82096432a960027c3e86afa605 Mon Sep 17 00:00:00 2001 From: michel Date: Wed, 15 Nov 2017 11:55:25 +0100 Subject: [PATCH] =?UTF-8?q?Sp=C3=A9cifications=20v2:il=20faudrait=20remett?= =?UTF-8?q?re=20manager=5Fid=20en=20required?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/event.py b/models/event.py index 44e362d..19c783a 100644 --- a/models/event.py +++ b/models/event.py @@ -13,7 +13,7 @@ class Event(models.Model): _order = 'id desc' name = fields.Char('Title', required=True) - manager_id = fields.Many2one('coworking.coworker', 'Manager', index=True, + manager_id = fields.Many2one('coworking.coworker', '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',