|
@ -66,9 +66,10 @@ class ResUsersRoleLine(models.Model): |
|
|
_description = 'Users associated to a role' |
|
|
_description = 'Users associated to a role' |
|
|
|
|
|
|
|
|
role_id = fields.Many2one( |
|
|
role_id = fields.Many2one( |
|
|
'res.users.role', string=u"Role", ondelete='cascade') |
|
|
|
|
|
|
|
|
'res.users.role', required=True, string=u"Role", ondelete='cascade') |
|
|
user_id = fields.Many2one( |
|
|
user_id = fields.Many2one( |
|
|
'res.users', string=u"User", domain=[('id', '!=', SUPERUSER_ID)]) |
|
|
|
|
|
|
|
|
'res.users', required=True, string=u"User", |
|
|
|
|
|
domain=[('id', '!=', SUPERUSER_ID)], ondelete='cascade') |
|
|
date_from = fields.Date(u"From") |
|
|
date_from = fields.Date(u"From") |
|
|
date_to = fields.Date(u"To") |
|
|
date_to = fields.Date(u"To") |
|
|
is_enabled = fields.Boolean(u"Enabled", compute='_compute_is_enabled') |
|
|
is_enabled = fields.Boolean(u"Enabled", compute='_compute_is_enabled') |
|
|