mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
fixup! Logic and permissions fixes, new demo module, changes JS-side that reloads in a cleaner way on profile change fixup! removed unused imports, beautified JS fixup! Test coverage increase [FIX] Use write instead of assignment operator on create function: assignment on multiple records raises error fixup! Removed leftover copyright Apply suggestions from code review Co-Authored-By: David Beal <david.beal@akretion.com>
15 lines
372 B
Python
15 lines
372 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")
|