|
@ -6,6 +6,7 @@ import datetime |
|
|
import logging |
|
|
import logging |
|
|
|
|
|
|
|
|
from odoo import api, fields, models |
|
|
from odoo import api, fields, models |
|
|
|
|
|
from odoo import SUPERUSER_ID |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_logger = logging.getLogger(__name__) |
|
|
_logger = logging.getLogger(__name__) |
|
@ -66,7 +67,7 @@ class ResUsersRoleLine(models.Model): |
|
|
role_id = fields.Many2one( |
|
|
role_id = fields.Many2one( |
|
|
'res.users.role', string=u"Role", ondelete='cascade') |
|
|
'res.users.role', string=u"Role", ondelete='cascade') |
|
|
user_id = fields.Many2one( |
|
|
user_id = fields.Many2one( |
|
|
'res.users', string=u"User") |
|
|
|
|
|
|
|
|
'res.users', string=u"User", domain=[('id', '!=', SUPERUSER_ID)]) |
|
|
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') |
|
|