diff --git a/app_auto_backup/__manifest__.py b/app_auto_backup/__manifest__.py index 751ba78a..1027a231 100644 --- a/app_auto_backup/__manifest__.py +++ b/app_auto_backup/__manifest__.py @@ -1,14 +1,23 @@ # -*- coding: utf-8 -*- # 'author': "Yenthe Van Ginneken", # 'website': "http://www.odoo.yenthevg.com", +# 'author': "guohuadeng@hotmail.com", +# 'website': "https://www.odooai.cn", { - 'name': "Database auto backup,数据库自动备份", + 'name': "Database auto backup and Download,数据库自动备份", 'version': '16.24.10.09', - 'summary': 'Automated backups, optimized from auto_backup of Yenthe Van Ginneken', + 'summary': 'Automated and odoo database backups. easy download and manage database file. optimized from auto_backup of oca Yenthe Van Ginneken', 'description': """ + 1. Easy schedule database backup + 2. Set remote backup and cron schedule + 3. Manual backup database in one click + 4. Easy download backup file or remove file for System user + 11. Multi-language Support. Multi-Company Support. + 12. Support Odoo 18,17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition. + 13. Full Open Source. The Database Auto-Backup module enables the user to make configurations for the automatic backup of the database. Backups can be taken on the local system or on a remote server, through SFTP. You only have to specify the hostname, port, backup location and databasename (all will be pre-filled by default with correct data. diff --git a/app_auto_backup/controllers/main.py b/app_auto_backup/controllers/main.py index 7bd64156..bd672f4b 100644 --- a/app_auto_backup/controllers/main.py +++ b/app_auto_backup/controllers/main.py @@ -15,6 +15,8 @@ class AppAutoBackup(http.Controller): @http.route("/dbbackup/download/", type="http", auth="user") def download_backupfile(self, file_path, **kw): _logger.warning('download_backupfile: %s', file_path) + if not self.env.user.has_group('base.group_system'): + raise UserError(_('File not found for user.')) if os.path.exists(file_path): try: with open(file_path, 'rb') as file: @@ -28,4 +30,4 @@ class AppAutoBackup(http.Controller): except Exception as e: raise UserError(e) else: - return 'File not found' \ No newline at end of file + return 'File not found' diff --git a/app_auto_backup/static/description/banner.png b/app_auto_backup/static/description/banner.png new file mode 100644 index 00000000..9693ea85 Binary files /dev/null and b/app_auto_backup/static/description/banner.png differ diff --git a/app_auto_backup/static/description/banner1.png b/app_auto_backup/static/description/banner1.png new file mode 100644 index 00000000..2bf46765 Binary files /dev/null and b/app_auto_backup/static/description/banner1.png differ diff --git a/app_auto_backup/static/description/demo1.jpg b/app_auto_backup/static/description/demo1.jpg index 21b7b219..cac2d3fb 100644 Binary files a/app_auto_backup/static/description/demo1.jpg and b/app_auto_backup/static/description/demo1.jpg differ diff --git a/app_auto_backup/static/description/demo2.jpg b/app_auto_backup/static/description/demo2.jpg index 7bba6e60..513a46fd 100644 Binary files a/app_auto_backup/static/description/demo2.jpg and b/app_auto_backup/static/description/demo2.jpg differ diff --git a/app_auto_backup/static/description/demo3.jpg b/app_auto_backup/static/description/demo3.jpg new file mode 100644 index 00000000..f0e66f09 Binary files /dev/null and b/app_auto_backup/static/description/demo3.jpg differ diff --git a/app_auto_backup/static/description/demo4.jpg b/app_auto_backup/static/description/demo4.jpg new file mode 100644 index 00000000..abd60347 Binary files /dev/null and b/app_auto_backup/static/description/demo4.jpg differ diff --git a/app_auto_backup/static/description/icon.png b/app_auto_backup/static/description/icon.png index f96c1437..669657d8 100644 Binary files a/app_auto_backup/static/description/icon.png and b/app_auto_backup/static/description/icon.png differ diff --git a/app_auto_backup/static/description/index.html b/app_auto_backup/static/description/index.html index 52d76ca3..7ce4e3d5 100644 --- a/app_auto_backup/static/description/index.html +++ b/app_auto_backup/static/description/index.html @@ -1,3 +1,108 @@ + + + + +
+

Database auto backup. Easy schedule backup and Download

+

数据库自动备份及快速下载

+
+ + +
+
+
+
+

Latest update: v16.24.10.09

+
+ +
+
+
+ Key features: +
    +
  • + + 1. Easy schedule database backup +
  • +
  • + + 2. Set remote backup and cron schedule +
  • +
  • + + 3. Manual backup database in one click +
  • +
  • + + 4. Easy download backup file or remove file for System user +
  • +
  • + + 11. Multi-language Support. Multi-Company Support. +
  • +
  • + + 12. Support Odoo 18,17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition. +
  • +
  • + + 13. Full Open Source. +
  • +
+
+
+
+
+
+
+ + +
+
+

1. Easy schedule database backup

+

快速按日程自动备份,方便的直接下载

+
+ +
+
+
+ +
+
+

2. Set remote backup and cron schedule

+

支持远程备份

+
+ +
+
+
+ +
+
+

3. Manual backup database in one click

+

一键手动备份

+
+ +
+
+
+ +
+
+

4. Easy download backup file or remove file for System user

+

系统用户可以直接下载所有数据库备份文件,进行备份管理

+
+ +
+
+
+ +
@@ -12,7 +117,7 @@

- Keep your Odoo data safe with this module. Take automated back-ups, remove them automatically + Keep your Odoo data safe with this module. Take automated back-ups, remove them automatically and even write them to an external server through an encrypted tunnel. You can even specify how long local backups and external backups should be kept, automatically!

@@ -94,3 +199,69 @@
+ + + + + +
+

- How to setup and use -

+

This app need no extra module. The price already included

+
+
+
+

+ 1. Buy and Install +

+

+ 2. Read the app description for user guide +

+

+ 3. Enjoy and easy use +

+
+
+ +
+
+

4. More information in our FAQ

+
+ https://www.odooai.cn/faq +
+
+
+ + + + + + +
+
+
+

Technical Help & Support

+
+
+
+

+ For any type of technical help & support requests, Feel free to contact us

+ + odoo@china.com +

+ Via QQ: 300883 (App user would not get QQ or any other IM support. Only for odoo project customize.)

+ + 300883@qq.com +
+
+

Visit our website for more support.

+

https://www.odooai.cn

+
+
+
+
+ + \ No newline at end of file diff --git a/app_common/__manifest__.py b/app_common/__manifest__.py index 53b345b2..e1641fbc 100644 --- a/app_common/__manifest__.py +++ b/app_common/__manifest__.py @@ -39,7 +39,7 @@ { 'name': "odooAi Common Util and Tools,欧度智能基础核心优化", - 'version': '16.24.08.26', + 'version': '16.24.10.09', 'author': 'odooai.cn', 'category': 'Extra tools', 'website': 'https://www.odooai.cn', diff --git a/app_common/models/app_import.py b/app_common/models/app_import.py index 565aeb32..2615f952 100644 --- a/app_common/models/app_import.py +++ b/app_common/models/app_import.py @@ -3,8 +3,6 @@ import os.path from odoo import api, fields, models, modules, tools, SUPERUSER_ID, _ -from odoo.tests import common -ADMIN_USER_ID = common.ADMIN_USER_ID def app_quick_import(env, content_path, sep=None, context={}): if not sep: