mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-21 20:51:58 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
17
odoo-bringout-oca-ocb-mail/mail/models/res_role.py
Normal file
17
odoo-bringout-oca-ocb-mail/mail/models/res_role.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResRole(models.Model):
|
||||
_name = "res.role"
|
||||
_description = (
|
||||
"Represents a role in the system used to categorize users. "
|
||||
"Each role has a unique name and can be associated with multiple users. "
|
||||
"Roles can be mentioned in messages to notify all associated users."
|
||||
)
|
||||
|
||||
name = fields.Char(required=True)
|
||||
user_ids = fields.Many2many("res.users", relation="res_role_res_users_rel", string="Users")
|
||||
|
||||
_unique_name = models.UniqueIndex("(name)", "A role with the same name already exists.")
|
||||
Loading…
Add table
Add a link
Reference in a new issue