mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
black, isort
This commit is contained in:
committed by
Sergey Shebanin
parent
567f43760f
commit
d02a1cdd4e
@@ -1,16 +1,17 @@
|
||||
# Copyright 2018-2019 Alexandre Díaz
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import models, fields
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResUsers(models.Model):
|
||||
_inherit = 'res.users'
|
||||
_inherit = "res.users"
|
||||
|
||||
chatter_position = fields.Selection([
|
||||
('normal', 'Normal'),
|
||||
('sided', 'Sided'),
|
||||
], string="Chatter Position", default='sided')
|
||||
chatter_position = fields.Selection(
|
||||
[("normal", "Normal"), ("sided", "Sided")],
|
||||
string="Chatter Position",
|
||||
default="sided",
|
||||
)
|
||||
|
||||
def __init__(self, pool, cr):
|
||||
""" Override of __init__ to add access rights.
|
||||
@@ -20,7 +21,7 @@ class ResUsers(models.Model):
|
||||
super(ResUsers, self).__init__(pool, cr)
|
||||
# duplicate list to avoid modifying the original reference
|
||||
type(self).SELF_WRITEABLE_FIELDS = list(self.SELF_WRITEABLE_FIELDS)
|
||||
type(self).SELF_WRITEABLE_FIELDS.extend(['chatter_position'])
|
||||
type(self).SELF_WRITEABLE_FIELDS.extend(["chatter_position"])
|
||||
# duplicate list to avoid modifying the original reference
|
||||
type(self).SELF_READABLE_FIELDS = list(self.SELF_READABLE_FIELDS)
|
||||
type(self).SELF_READABLE_FIELDS.extend(['chatter_position'])
|
||||
type(self).SELF_READABLE_FIELDS.extend(["chatter_position"])
|
||||
|
||||
Reference in New Issue
Block a user