Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion auto_database_backup/models/db_backup_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ def _schedule_auto_backup(self, frequency):
app_key=rec.dropbox_client_key,
app_secret=rec.dropbox_client_secret,
oauth2_refresh_token=rec.dropbox_refresh_token)
dropbox_destination = (rec.dropbox_folder + '/' +
dropbox_destination = ((rec.dropbox_folder or '') + '/' +
backup_filename)
dbx.files_upload(temp.read(), dropbox_destination)
if rec.auto_remove:
Expand Down
2 changes: 1 addition & 1 deletion auto_database_backup/views/db_backup_configure_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
invisible="1"/>
<field name="dropbox_folder"
invisible="backup_destination != 'dropbox'"
required="backup_destination == 'dropbox'"/>
placeholder="Path start with /"/>
<field name="auto_remove"/>
<label for="days_to_remove" class="oe_inline"
invisible="auto_remove == False"/>
Expand Down