server_environment: lint fixes after migration
This commit is contained in:
parent
7f4a81ac1c
commit
e9d8dccc2d
|
|
@ -292,7 +292,7 @@ class ServerConfiguration(models.TransientModel):
|
|||
self, view_id=None, view_type="form", toolbar=False, submenu=False
|
||||
):
|
||||
"""Overwrite the default method to render the custom view."""
|
||||
res = super(ServerConfiguration, self).fields_view_get(
|
||||
res = super().fields_view_get(
|
||||
view_id, view_type, toolbar
|
||||
)
|
||||
View = self.env["ir.ui.view"]
|
||||
|
|
@ -315,7 +315,7 @@ class ServerConfiguration(models.TransientModel):
|
|||
|
||||
@api.model
|
||||
def default_get(self, fields_list):
|
||||
res = {}
|
||||
res = super().default_get(fields_list)
|
||||
if not self.env.user.has_group(
|
||||
"server_environment.has_server_configuration_access"
|
||||
):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Copyright 2018 Camptocamp (https://www.camptocamp.com).
|
||||
# License GPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
from odoo.addons.server_environment import server_env
|
||||
from .. import server_env
|
||||
|
||||
from . import common
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue