[MIG] web_responsive: Migration to 14.0

This commit is contained in:
Sergey Shebanin
2021-02-11 15:07:56 +03:00
committed by Sergey Shebanin
parent 346e2c20e8
commit f7e230d5cc
22 changed files with 1473 additions and 670 deletions

View File

@@ -14,11 +14,11 @@ class ResUsers(models.Model):
)
def __init__(self, pool, cr):
""" Override of __init__ to add access rights.
"""Override of __init__ to add access rights.
Access rights are disabled by default, but allowed on some specific
fields defined in self.SELF_{READ/WRITE}ABLE_FIELDS.
"""
super(ResUsers, self).__init__(pool, cr)
super().__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"])