From 43274d08ce330bd0bea94a734079dd12aa486eb9 Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Fri, 8 Dec 2023 11:01:50 +0530 Subject: [PATCH] Dec 8 : [FIX] Bug Fixed 'auto_database_backup' --- auto_database_backup/__manifest__.py | 4 ++-- auto_database_backup/doc/RELEASE_NOTES.md | 8 ++++++++ auto_database_backup/models/db_backup_configure.py | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/auto_database_backup/__manifest__.py b/auto_database_backup/__manifest__.py index c277e3523..078a19faf 100644 --- a/auto_database_backup/__manifest__.py +++ b/auto_database_backup/__manifest__.py @@ -22,14 +22,14 @@ { 'name': "Automatic Database Backup To Local Server, Remote Server," "Google Drive, Dropbox, Onedrive, Nextcloud and Amazon S3", - 'version': '16.0.2.0.1', + 'version': '16.0.3.0.2', 'category': 'Extra Tools', 'summary': 'Generate automatic backup of databases and store to local, ' 'google drive, dropbox, nextcloud, amazon S3, onedrive or ' 'remote server', 'description': 'This module has been developed for creating database ' 'backups automatically and store it to the different ' - 'locations.', + 'locations,database backup, backup, Google Drive, Dropbox, Onedrive, Nextcloud, Amazon S3, automatic backup', 'author': "Cybrosys Techno Solutions", 'maintainer': 'Cybrosys Techno Solutions', 'company': 'Cybrosys Techno Solutions', diff --git a/auto_database_backup/doc/RELEASE_NOTES.md b/auto_database_backup/doc/RELEASE_NOTES.md index 58476312e..a5890b574 100644 --- a/auto_database_backup/doc/RELEASE_NOTES.md +++ b/auto_database_backup/doc/RELEASE_NOTES.md @@ -13,3 +13,11 @@ #### ADD - Next Cloud Integration and Amazon S3 are added and added active field customization if connection is successful only then active field will be able to edit. + +## Module + +#### 07.12.2023 +#### Version 16.0.3.0.2 +#### UPDT + +- Updated the database name check function which got access denied when list_db=False. \ No newline at end of file diff --git a/auto_database_backup/models/db_backup_configure.py b/auto_database_backup/models/db_backup_configure.py index 5e2a5b27f..58b82567f 100644 --- a/auto_database_backup/models/db_backup_configure.py +++ b/auto_database_backup/models/db_backup_configure.py @@ -535,7 +535,7 @@ class DbBackupConfigure(models.Model): @api.constrains('db_name') def _check_db_credentials(self): """Validate entered database name and master password""" - database_list = db.list_dbs() + database_list = db.list_dbs(force=True) if self.db_name not in database_list: raise ValidationError(_("Invalid Database Name!")) try: