server_environment: lint fixes after migration

This commit is contained in:
Akim Juillerat 2019-10-22 18:03:49 +02:00 committed by Marcos Oitaben
parent 7f4a81ac1c
commit e9d8dccc2d
2 changed files with 3 additions and 3 deletions

View File

@ -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"
): ):

View File

@ -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