mirror of
https://github.com/bringout/oca-ocb-mail.git
synced 2026-04-22 00:02:03 +02:00
Initial commit: Mail packages
This commit is contained in:
commit
4e53507711
1948 changed files with 751201 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, models, api
|
||||
|
||||
|
||||
class Users(models.Model):
|
||||
""" Update of res.users class
|
||||
- add a preference about username for livechat purpose
|
||||
"""
|
||||
_inherit = 'res.users'
|
||||
|
||||
livechat_username = fields.Char("Livechat Username", help="This username will be used as your name in the livechat channels.")
|
||||
|
||||
@property
|
||||
def SELF_READABLE_FIELDS(self):
|
||||
return super().SELF_READABLE_FIELDS + ['livechat_username']
|
||||
|
||||
@property
|
||||
def SELF_WRITEABLE_FIELDS(self):
|
||||
return super().SELF_WRITEABLE_FIELDS + ['livechat_username']
|
||||
Loading…
Add table
Add a link
Reference in a new issue