mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
IMP attachment_minio improve requested parameters and bucket creation per testing.
This commit is contained in:
@@ -36,7 +36,8 @@ class MinioAttachment(models.Model):
|
||||
if not bucket:
|
||||
raise exceptions.UserError('Incorrect configuration of attachment_minio -- Missing bucket.')
|
||||
if not client.bucket_exists(bucket):
|
||||
client.make_bucket(bucket)
|
||||
region = params.get_param('ir_attachment.location.region', 'us-west-1')
|
||||
client.make_bucket(bucket, region)
|
||||
return bucket
|
||||
|
||||
@api.model
|
||||
|
||||
Reference in New Issue
Block a user