mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
opt dump file
This commit is contained in:
@@ -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",
|
||||
|
||||
{
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user