From b1f40cfe2650e5bd2f9fc9501a108f45334ce213 Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Mon, 18 Nov 2019 10:29:23 +0100 Subject: [PATCH] Add an advice in error message --- cloud_platform/models/cloud_platform.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cloud_platform/models/cloud_platform.py b/cloud_platform/models/cloud_platform.py index 8e00f4e..d664786 100644 --- a/cloud_platform/models/cloud_platform.py +++ b/cloud_platform/models/cloud_platform.py @@ -128,7 +128,9 @@ class CloudPlatform(models.AbstractModel): "Normally, 'swift' is activated on labs, integration " "and production, but should not be used in dev environment" " (or using a dedicated dev bucket, never using the " - "integration/prod bucket)." + "integration/prod bucket).\n" + "If you don't actually need a bucket, change the" + " 'ir_attachment.location' parameter." ) prod_container = bool(re.match(r'[a-z0-9-]+-odoo-prod', container_name)) @@ -182,7 +184,9 @@ class CloudPlatform(models.AbstractModel): "Normally, 's3' is activated on labs, integration " "and production, but should not be used in dev environment" " (or using a dedicated dev bucket, never using the " - "integration/prod bucket)." + "integration/prod bucket).\n" + "If you don't actually need a bucket, change the" + " 'ir_attachment.location' parameter." ) prod_bucket = bool(re.match(r'[a-z-0-9]+-odoo-prod', bucket_name)) if environment_name == 'prod':