mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-23 18:04:34 +00:00
Merge pull request #232 from yvaucher/14.0-fp-fix-bucket-name
[14.0] [FIX] Bucket name formatting
This commit is contained in:
@@ -56,7 +56,7 @@ class IrAttachment(models.Model):
|
||||
secret_key = os.environ.get('AWS_SECRET_ACCESS_KEY')
|
||||
bucket_name = name or os.environ.get('AWS_BUCKETNAME')
|
||||
# replaces {db} by the database name to handle multi-tenancy
|
||||
bucket_name.format(db=self.env.cr.dbname)
|
||||
bucket_name = bucket_name.format(db=self.env.cr.dbname)
|
||||
|
||||
params = {
|
||||
'aws_access_key_id': access_key,
|
||||
|
||||
Reference in New Issue
Block a user