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