mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 02:08:36 +00:00
pre-commit run -a
This commit is contained in:
@@ -69,7 +69,7 @@ class CloudPlatform(models.AbstractModel):
|
||||
self.check()
|
||||
if configs.filestore.location == "remote":
|
||||
self.env["ir.attachment"].sudo().force_storage()
|
||||
_logger.info("cloud platform configured for {}".format(platform_kind))
|
||||
_logger.info(f"cloud platform configured for {platform_kind}")
|
||||
|
||||
@api.model
|
||||
def install(self):
|
||||
@@ -125,5 +125,5 @@ class CloudPlatform(models.AbstractModel):
|
||||
self._check_redis(environment_name)
|
||||
|
||||
def _register_hook(self):
|
||||
super(CloudPlatform, self)._register_hook()
|
||||
super()._register_hook()
|
||||
self.sudo().check()
|
||||
|
||||
@@ -18,4 +18,4 @@ def strtobool(value):
|
||||
try:
|
||||
return _MAP[str(value).lower()]
|
||||
except KeyError as error:
|
||||
raise ValueError('"{}" is not a valid bool value'.format(value)) from error
|
||||
raise ValueError(f'"{value}" is not a valid bool value') from error
|
||||
|
||||
Reference in New Issue
Block a user