opt dump file

This commit is contained in:
Ivan Office
2025-02-12 19:34:46 +08:00
parent f6d039100c
commit a3071019d5
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# 'author': "Yenthe Van Ginneken",
# 'website': "http://www.odoo.yenthevg.com",
# 'author': "guohuadeng@hotmail.com",
# 'author': "sales@odooai.cn",
# 'website': "https://www.odooai.cn",
{

View File

@@ -14,8 +14,8 @@ class AppAutoBackup(http.Controller):
@http.route("/dbbackup/download/<path:file_path>", 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'):
# _logger.warning('download_backupfile: %s', file_path)
if not request.env.user.has_group('base.group_system'):
raise UserError(_('File not found for user.'))
if os.path.exists(file_path):
try: