Spécifications v2:il faudrait remettre manager_id en required

This commit is contained in:
michel 2017-11-15 11:55:25 +01:00
parent 797bef0aee
commit 67c875e987

View File

@ -13,7 +13,7 @@ class Event(models.Model):
_order = 'id desc' _order = 'id desc'
name = fields.Char('Title', required=True) 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'])]") domain="[('coworker_type', 'in', ['staffer', 'member'])]")
date_start = fields.Datetime(default=fields.Date.context_today, required=True) date_start = fields.Datetime(default=fields.Date.context_today, required=True)
starts_this_week = fields.Integer(compute='_compute_starts_this_week', starts_this_week = fields.Integer(compute='_compute_starts_this_week',