Remove old-style of super() calls
This commit is contained in:
@@ -115,7 +115,7 @@ class View(metaclass=PoolMeta):
|
||||
|
||||
@classmethod
|
||||
def read(cls, ids, fields_names):
|
||||
res = super(View, cls).read(ids, fields_names)
|
||||
res = super().read(ids, fields_names)
|
||||
if Transaction().user == 0:
|
||||
return res
|
||||
dashboard_id = cls.dashboard_id()
|
||||
|
||||
@@ -18,7 +18,7 @@ class User(metaclass=PoolMeta):
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
super(User, cls).__setup__()
|
||||
super().__setup__()
|
||||
cls._preferences_fields += [
|
||||
'dashboard_layout',
|
||||
'dashboard_actions',
|
||||
|
||||
Reference in New Issue
Block a user