[FIX] server: db service, fix the filestore copy when duplicating a database

This commit is contained in:
seb 2014-06-28 16:37:29 +02:00
parent 8915883a43
commit 34a931f845
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ def exp_duplicate_database(db_original_name, db_name):
from_fs = openerp.tools.config.filestore(db_original_name)
to_fs = openerp.tools.config.filestore(db_name)
if os.path.exists(from_fs) and not os.path.exists(to_fs):
shutil.copy(from_fs, to_fs)
shutil.copytree(from_fs, to_fs)
return True
def exp_get_progress(id):