20 lines
653 B
Python
20 lines
653 B
Python
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',
|
|
)
|