mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-23 18:04:34 +00:00
[FIX] Bucket name formatting
This commit is contained in:
committed by
Yannick Vaucher
co-authored by
Yannick Vaucher
parent
43fa8e57c1
commit
10e8bf6931
@@ -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