mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
18 lines
394 B
Python
18 lines
394 B
Python
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResUsersRole(models.Model):
|
|
_inherit = "res.users.role"
|
|
|
|
profile_id = fields.Many2one(
|
|
"res.users.profile",
|
|
"Profile",
|
|
)
|
|
|
|
|
|
class ResUsersRoleLine(models.Model):
|
|
_inherit = "res.users.role.line"
|
|
|
|
profile_id = fields.Many2one(related="role_id.profile_id")
|