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 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# 'author': "Yenthe Van Ginneken",
|
# 'author': "Yenthe Van Ginneken",
|
||||||
# 'website': "http://www.odoo.yenthevg.com",
|
# 'website': "http://www.odoo.yenthevg.com",
|
||||||
# 'author': "guohuadeng@hotmail.com",
|
# 'author': "sales@odooai.cn",
|
||||||
# 'website': "https://www.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")
|
@http.route("/dbbackup/download/<path:file_path>", type="http", auth="user")
|
||||||
def download_backupfile(self, file_path, **kw):
|
def download_backupfile(self, file_path, **kw):
|
||||||
_logger.warning('download_backupfile: %s', file_path)
|
# _logger.warning('download_backupfile: %s', file_path)
|
||||||
if not self.env.user.has_group('base.group_system'):
|
if not request.env.user.has_group('base.group_system'):
|
||||||
raise UserError(_('File not found for user.'))
|
raise UserError(_('File not found for user.'))
|
||||||
if os.path.exists(file_path):
|
if os.path.exists(file_path):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user