Public release from ruodoo-project: 19.0 - 2026-07-26 21:17:35 UTC
This commit is contained in:
19
tier_communications_matrix/models/res_users_matrix.py
Normal file
19
tier_communications_matrix/models/res_users_matrix.py
Normal file
@ -0,0 +1,19 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResUsersMatrix(models.Model):
|
||||
"""Extend res.users with Matrix credentials."""
|
||||
_inherit = 'res.users'
|
||||
|
||||
tier_matrix_homeserver = fields.Char(
|
||||
string='Matrix Homeserver',
|
||||
help='URL Matrix homeserver, например https://matrix.org',
|
||||
)
|
||||
tier_matrix_access_token = fields.Char(
|
||||
string='Matrix Access Token',
|
||||
help='Access token для Matrix бота/пользователя.',
|
||||
)
|
||||
tier_matrix_room_id = fields.Char(
|
||||
string='Matrix Room ID',
|
||||
help='ID комнаты Matrix для переписки, например !roomid:server',
|
||||
)
|
||||
Reference in New Issue
Block a user